Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Re: $_ scoping issues

by tilly (Archbishop)
on Jul 16, 2003 at 01:42 UTC ( [id://274658]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: $_ scoping issues
in thread $_ scoping issues

To more precisely state it, no matter what package has been declared, $_ means $main::_.

As an amusing side effect, the declaration our $_; will (if you are in any package other than main) cause your explicit references to $_ to not be the $_ that you expect...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-25 15:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found