![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Using 'use' away from script startby jmcnamara (Monsignor) |
on Nov 15, 2001 at 13:29 UTC ( [id://125533]=note: print w/replies, xml ) | Need Help?? |
For this type of situation I prefer the autouse pragma: use autouse 'Some::Module' => 'some_function'; This defers the loading of the module until the function is called. However, It doesn't seem to work for LWP::Simple::get. I think that this is due to the fact that LWP::Simple defines its own import().
--
In Section
Seekers of Perl Wisdom
|
|