And it's always the main package:
package Foo; sub AUTOLOAD { __PACKAGE__ } print $foo->(); package main; sub AUTOLOAD { __PACKAGE__ } __END__ main
I just can't find the documentation for this behaviour.
-- Frank
In reply to Re^2: Autoloading and anonymous subs
by haoess
in thread Autoloading and anonymous subs
by haoess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |