in reply to autouse vs use
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.use autouse Mymodule => qw(func1 func2);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: autouse vs use
by dragonchild (Archbishop) on Apr 25, 2005 at 12:42 UTC |