Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: my() and our()

by revdiablo (Prior)
on Aug 09, 2005 at 15:49 UTC ( [id://482267]=note: print w/replies, xml ) Need Help??


in reply to my() and our()

If our() has the same scoping rules as my()

The scoping rules are only the same in terms of where the variable is accessible. Meaning you can only access a lexical variable within the current lexical scope. Outside of that, you will get an error (if you're using strict). The rules aren't the same when it comes to how long the variables live, as you've discovered.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-18 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found