in reply to Re^4: Perl calls C calls Perl CallBack: How Perl callback use the same interpreter/context as Perl caller?
in thread Perl calls C calls Perl CallBack: How Perl callback use the same interpreter/context as Perl caller?

I thought that my_perl was a variable in your C code, but I now realize that your C code gets called from Perl. I don't find a convenient way in perlguts, perlapi or perlcall, but maybe you don't even need special things like passing the Perl interpreter around as the current Perl interpreter already is a global variable.

  • Comment on Re^5: Perl calls C calls Perl CallBack: How Perl callback use the same interpreter/context as Perl caller?
  • Download Code