http://www.perlmonks.org?node_id=499463


in reply to Where and when you should place 'use module;'?

If your modules where only used sometimes, i. e. not every sub is called always when your program runs, you could require them:

sub only_uses_sometimes { require My::Module; # and call import, if you want some exported things }

Now the module will be loaded at run time.

--Frank