On Fri, Aug 01, 2008 at 10:46:39AM +0200, Michael Schroeder wrote:
On Fri, Aug 01, 2008 at 08:45:06AM +0200, Josef Wolf wrote:
The question now becomes, how to (painless) deploy a perl XS library which makes callbacks into perl. That means, the XS library needs access to the my_perl variable, which is declared as
static PerlInterpreter *my_perl;
in the original libperl.so
It should be available via the "aTHX" variable/macro. If not, try Perl_get_context().
Thanks for the hint, Michael. I could get it working with this!