in reply to Using 'use' away from script start


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().

--
John.