Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

perlfunc:local

by gods
on Aug 24, 1999 at 22:42 UTC ( #280=perlfunc: print w/replies, xml ) Need Help??

local

See the current Perl documentation for local.

Here is our local, out-dated (pre-5.6) version:


local - create a temporary value for a global variable (dynamic scoping)



local EXPR



A local modifies the listed variables to be local to the enclosing block, file, or eval. If more than one value is listed, the list must be placed in parentheses. See Temporary Values via local() for details, including issues with tied arrays and hashes.

You really probably want to be using my() instead, because local() isn't what most people think of as ``local''. See Private Variables via my() for details.


Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[choroba]: 22 points until level 22
[Eily]: I guess your about to turn 22 yourself then choroba :P
[Eily]: in 22 days
[ww]: 22 hrs and 22.22 minutes?
[choroba]: 22? Heh, that's... almost 22 years ago :-)
[Corion]: :-D

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2017-09-25 14:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?