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 export them?
perl -mstrict -we 'use Foo qw(mod);if(mod("CGI","header")) { print header(); }'
does not and that is what I need it to do...
perl -mstrict -we 'use CGI qw(mod);\ if(mod("CGI","$CGI::header")) { print $CGI::header(); }'
Name your spaces fully. Yes, it gives a new error, but I'm not a Perl one-liner person...
-- _Sx_ http://youve-reached-the.endoftheinternet.org/ _____ http://jaxpm.insecurity.org/ http://cis4dl.insecurity.org/
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>