in reply to Return a hash from Perl to C

I think it would be quite ugly for the C code to get the hash back directly. Better would be to write another wrapper function to look up values in the hash and keep it on the perl side.