I think that basically you will have to make my_perl a global variable so that it is available everywhere. You could also pass the information through Perl as an integer (SvIV), but that makes for a horribly brittle design.
In reply to Re^3: Perl calls C calls Perl CallBack: How Perl callback use the same interpreter/context as Perl caller?
by Corion
in thread Perl calls C calls Perl CallBack: How Perl callback use the same interpreter/context as Perl caller?
by itamarat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |