sub AUTOLOAD { my $name = $AUTOLOAD; $name =~ s/^.*:://; *$name = sub { ....... }; goto &$name; }
My question is: what package will the subroutine be created in? The invoking package name or the package that AUTOLOAD is defined in?
My guess is the latter, not the former but I wanted to make sure.
In reply to oop - obvious AUTOLOAD question by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |