in reply to Perl Interpretor name with multiple instances
You can parse any valid perl using this method. Look more at perlembed to see how the API abuses the assumption that there is only one interpreter.my_perl = perl_alloc(); perl_construct(my_perl); perl_parse(my_perl, NULL, argc, argv, (char **)NULL); perl_run(my_perl); perl_destruct(my_perl); perl_free(my_perl);
Remember, Rule #1 of Threading reads: "A library is not thread-safe unless specifically described that it is." Neither EXTERN.h nor perl.h are thread-safe.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Perl Interpretor name with multiple instances
by Anonymous Monk on Dec 14, 2000 at 09:01 UTC |