Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

(crazyinsomniac: qualify it) Re: Fully qualifying $AUTOLOAD

by crazyinsomniac (Prior)
on May 03, 2002 at 07:59 UTC ( [id://163732]=note: print w/replies, xml ) Need Help??


in reply to Fully qualifying $AUTOLOAD

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.
perl -MData::Dumper -e"package FOXY;$FOXY;print Dumper \%FOXY::" perl -MData::Dumper -we"package FOXY;$FOXY;print Dumper \%FOXY::" perl -MData::Dumper -e"package FOXY;my $FOXY;print Dumper \%FOXY::" perl -MData::Dumper -we"package FOXY;my $FOXY;print Dumper \%FOXY::" perl -MData::Dumper -e"package FOXY;$FOXY::FOXY;print Dumper \%FOXY::" perl -MData::Dumper -we"package FOXY;$FOXY::FOXY;print Dumper \%FOXY:: +" perl -MData::Dumper -e"package FOXY;our $FOXY;print Dumper \%FOXY::" perl -MData::Dumper -we"package FOXY;our $FOXY;print Dumper \%FOXY::"

 
______crazyinsomniac_____________________________
Of all the things I've lost, I miss my mind the most.
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://163732]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (1)
As of 2024-04-24 16:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found