http://qs321.pair.com?node_id=792434


in reply to A working strategy to handle AUTOLOAD, can(), and (multiple) inheritance without touching UNIVERSAL?

A trick that's useful in some circumstances is to declare the subs to be autoloaded.

$ perl -le' sub AUTOLOAD { print "Loading $AUTOLOAD" } sub foo; __PACKAGE__->can("foo")->(); ' Loading main::foo

(Oops, already covered.)