I believe I have it!
If I prepend
package $caller_namespace;
to the eval'ed code
It works!!
perldoc -f package
and
perldoc perlmod -> 'packages
says
"The scope of the package declaration is from the declaration
itself through the end of the enclosing block, file, or eval"
Works like a charm! T
Wiggins d'Anconia wrote:
JupiterHost.Net wrote:
WC -Sx- Jones wrote:
JupiterHost.Net wrote:
Will work whether I do the require or use way
require doesn't let you specify what to EXPORT though which is one
of the goals of this funtion...
use does import the module's name *and* does the
JupiterHost.Net wrote:
WC -Sx- Jones wrote:
JupiterHost.Net wrote:
Will work whether I do the require or use way
require doesn't let you specify what to EXPORT though which is one of
the goals of this funtion...
use does import the module's name *and* does the EXPORT symbols also
*if* i
WC -Sx- Jones wrote:
JupiterHost.Net wrote:
Will work whether I do the require or use way
require doesn't let you specify what to EXPORT though which is one of
the goals of this funtion...
use does import the module's name *and* does the EXPORT symbols also
*if* its called inside packag
JupiterHost.Net wrote:
Will work whether I do the require or use way
require doesn't let you specify what to EXPORT though which is one of
the goals of this funtion...
use does import the module's name *and* does the EXPORT symbols also
*if* its called inside package Foo;
Do you *have* to
WC -Sx- Jones wrote:
Any ideas?
:) Didn't your mother teach it's not nice to play with your code?
But I like it :)
perldoc -f require is very much similar what you are doing already...
I can get require() to do the same thing as use, import the module only
not the exported stuff..
perl -m
Any ideas?
:) Didn't your mother teach it's not nice to play with your code?
perldoc -f require is very much similar what you are doing already...
--
_Sx_ http://youve-reached-the.endoftheinternet.org/ _
http://jaxpm.insecurity.org/
http://cis4dl.insecurity.org/
--
To unsubscrib
Hello list!
I have a simple thing I know I'm missing something obvious...
If I have this:
my $e = 'use CGI qw(url param);';
eval $e;
die $@ if $@;
print url();
for(param()) {
print "$_\n\t" . join("\n\t", param($_));print "\n";
}
I realize that it is better practice to just use CGI but as