You will have to store the C pointer inside the hash, for instance as $hash{__c_ptr}. Another option is to use <c>~ magic to save it, that way it will be invisible from the Perl side.
In reply to Re: Mixing C and perl
by salva
in thread Mixing C and perl
by jpl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |