Use the Perl debugger to figure out exactly where the second-time loading is going wrong. Scanning p5git://perl.c. I see that the debugger is enabled by:
PL_perldb = PERLDB_ALL; init_debugger();
Since you want more than one interpreter instance per process, then you need MULTIPLICITY defined (as you do) which means that p5git://grep=PL_perldb gets defined as (vTHX->Iperldb) in p5git://embedvar.h. and init_debugger() actually becomes Perl_init_debugger(aTHX). I'll let you look up how to get vTHX and aTHX defined properly based on the allocated interpreter you have a pointer to.
- tye
In reply to Re: Multiple perl interpreters and Module::Runtime (-d)
by tye
in thread Multiple perl interpreters and Module::Runtime
by daneus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |