Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: Perl calls C calls Perl CallBack: How Perl callback use the same interpreter/context as Perl caller?

by Corion (Patriarch)
on Jul 08, 2014 at 11:39 UTC ( [id://1092709]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1092709]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found