The AUTOLOAD subroutine should never be used unless you have a very specific reason that cannot be done any other way.
The autouse module is a different case. It allows you to defer loading of the subroutine code until runtime, thus saving some memory and time during the compile phase. This is occasionally useful, but you could easily spend a long career as a Perl programmer without ever using it.
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
In reply to Re: AutoLoader - when to use it?
by hardburn
in thread AutoLoader - when to use it?
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |