Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
(crazyinsomniac: qualify it) Re: Fully qualifying $AUTOLOADby crazyinsomniac (Prior) |
on May 03, 2002 at 07:59 UTC ( [id://163732]=note: print w/replies, xml ) | Need Help?? |
please read perldata.
Global symbol "$AUTOLOAD" requires explicit package name seems to make a liar out of perlsub. I get from the docs that $AUTOLOAD will be set to be a part of the package the routine is in, but it doesn't seem to behave that way.$AUTOLOAD is not a fully qualified and does not have an explicit package name. perlsub is not a liar. $PACKAGE::AUTOLOAD is fully qualified. $main::AUTOLOAD is fully qualified. $AUTOLOAD is not. Try it out.
In Section
Seekers of Perl Wisdom
|
|