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

Re: (proposed)Scoping tutorial

by Dominus (Parson)
on Dec 20, 2000 at 02:34 UTC ( [id://47496]=note: print w/replies, xml ) Need Help??


in reply to (proposed)Scoping tutorial

> Since local only works on globals, you can't use it on a my variable...
It's good to realize that this restriction is entirely arbitrary. In principle, there's nothing wrong with the idea of giving a my variable a new value temporarily, and arranging for its old value to return automatically, later on, which is what local does. Someone (I think Chip) even contributed a patch to Perl to enable this. But Larry thought it might be confusing, and rejected it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found