Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Why is 'our' good?

by Dominus (Parson)
on Mar 30, 2001 at 19:08 UTC ( #68389=note: print w/ replies, xml ) Need Help??


in reply to Why is 'our' good?

The other big problem with our() is that it is advertised as a replacement for use vars:

NOTE: The functionality provided by this pragma has been superseded by our declarations, available in Perl v5.6.0 or later. See the our entry in the perlfunc manpage.
But there are several things that vars does that our() doesn't do. The benefit, as you point out, is a very limited gain of functionality, and the cost is that there is yet one more subtly different feature complicating Perl's byzantine scoping and namespace rules.


Comment on Re: Why is 'our' good?
Replies are listed 'Best First'.
Re (tilly) 2: Why is 'our' good?
by tilly (Archbishop) on Mar 31, 2001 at 08:20 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (17)
As of 2015-07-30 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls