Chas. Owens wrote:
On Feb 18, 2008 7:52 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote:
snip
eval "use SomeModule" if $ENV{USE_SOMEMODULE};

or the sort of tricks that the DBI and other factory classes use.
What would be the problem with that?

$ perl -le 'eval "use Time::Local"; print for keys %INC'
snip

Please reflect on the lack of the if statement in your code.

Sorry, but I still don't get it.

$ perl -le 'eval "use Time::Local" if 1+1==2; print for keys %INC'
warnings/register.pm
Carp.pm
integer.pm
Exporter.pm
strict.pm
warnings.pm
Time/Local.pm
vars.pm
Config.pm
$

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to