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


in reply to Re: Autoloading and anonymous subs
in thread Autoloading and anonymous subs

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