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

Re^5: 'our' is not 'my'

by JadeNB (Chaplain)
on Nov 26, 2008 at 15:30 UTC ( #726128=note: print w/replies, xml ) Need Help??


in reply to Re^4: 'our' is not 'my'
in thread 'our' is not 'my'

The point is that Perl is willing to trust you. Your telling it our $var means “I and all my friends in this lexical scope want to use this variable without qualification” (that's why it's the first person plural!). Since it believes that you know what you're doing, it doesn't want to warn you later when you do just what you said that you were going to do.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://726128]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2016-12-08 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (136 votes). Check out past polls.