in reply to Re: Extending an embedded Perl interpreter without a .pm file
in thread Extending an embedded Perl interpreter without a .pm file
It seems that Perl isn't executing the .pm file directly as Perl code, at least not in the main interpreter namespace, but is rather pulling it in as part of the module loading/initialization process. I.E. the eval_pv() method that I tried would be akin to writing a perl script and beginning it with: (this is the .pm file that SWIG generated)
This wouldn't work, because we aren't trying to define the DynTrans package in the perl script, but rather we want to use DynTrans; to do other work.package DynTrans; require Exporter; @ISA = qw(Exporter); package DynTrans; boot_DynTrans(); package DynTrans; @EXPORT = qw( GetTableName GetAction ); . . . User script here ...
Does this make sense?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extending an embedded Perl interpreter without a .pm file
by ShodadVenturi (Acolyte) on Feb 08, 2005 at 00:02 UTC | |
by benizi (Hermit) on Feb 08, 2005 at 22:27 UTC |