Re: simple eval $e; issue

2004-04-21 Thread JupiterHost.Net
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

Re: simple eval $e; issue

2004-04-21 Thread JupiterHost.Net
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

Re: simple eval $e; issue

2004-04-21 Thread Wiggins d'Anconia
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

Re: simple eval $e; issue

2004-04-21 Thread JupiterHost.Net
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

Re: simple eval $e; issue

2004-04-21 Thread WC -Sx- Jones
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

Re: simple eval $e; issue

2004-04-21 Thread JupiterHost.Net
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

Re: simple eval $e; issue

2004-04-21 Thread WC -Sx- Jones
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

simple eval $e; issue

2004-04-20 Thread JupiterHost.Net
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