When I ran your code through B::Deparse, it automagically put a sub keyword before AUTOLOAD. I don't remember this being documented anywhere, though there is plenty of stuff in Perl's documentation that is easy to overlook :)
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Why does this work? AUTOLOAD sans sub declaration
by hardburn
in thread Why does this work? AUTOLOAD sans sub declaration
by braswell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |