Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: my() and our()

by Joost (Canon)
on Aug 09, 2005 at 15:19 UTC ( [id://482241]=note: print w/replies, xml ) Need Help??


in reply to my() and our()

The declaration doesn't clobber anything, the assignment does. our just makes a global accessible and doesn't create a new or temporary variable. Using our $var just lets you access the global $var while strict 'vars' is in effect (like use vars qw($var), only lexically scoped).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-24 06:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found