in reply to autouse vs use

I think your syntax is wrong:
use autouse Mymodule => qw(func1 func2);
The autouse module was only recently added to the perl core and I've personally never seen anyone use it for anything, but the purpose is to avoid loading a large module if it isn't needed. This is probably mostly interesting for CGI scripts where startup speed is very important. You can do the same thing for simple cases, minus the import, just by calling require() before calling the function you want.

Replies are listed 'Best First'.
Re^2: autouse vs use
by dragonchild (Archbishop) on Apr 25, 2005 at 12:42 UTC
    This is probably mostly interesting for CGI scripts where startup speed is very important.

    Note that persistent environments, like mod_perl or FastCGI, actually want to pre-load as much as possible. In those contexts, this reduces startup speed.