in reply to AutoLoader - when to use it?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: AutoLoader - when to use it?
by kiat (Vicar) on Oct 26, 2004 at 01:35 UTC |