|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Use of Autoloader in Modern Timesby tobyink (Prior) |
| on Nov 15, 2012 at 20:52 UTC ( #1004060=note: print w/ replies, xml ) | Need Help?? |
|
There's no point in them these days. Better to split your code into a few logical modules and then require them on-demand. Not to be confused of course with AUTOLOAD which was originally designed to support Autoloader-type applications, but has become a useful general purpose facility.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||