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);
In reply to Re: autouse vs use
by perrin
in thread autouse vs use
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |