http://www.perlmonks.org?node_id=1004060


in reply to Use of Autoloader in Modern Times

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'