perlfunc
gods
<P>
local - create a temporary value for a global variable (dynamic scoping)
<P>
<HR>
<P>
local
<FONT SIZE=-1>EXPR</FONT>
<P>
<HR>
<P>
<FONT SIZE=-1>A</FONT> 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 [%linkNodeTitle "perlman:perlsub|Temporary Values via local()", $NODE, "Temporary Values via local()",{anchor=>"Temporary_Values_via_local_"};%]
for details, including issues with tied arrays and hashes.
<P>
You really probably want to be using [perlfunc:my|my()] instead, because [perlfunc:local|local()] isn't what most people think of as ``local''. See [%linkNodeTitle "perlman:perlsub|Private Variables via my()", $NODE, "Private Variables via my()",{anchor=>"Private_Variables_via_my_"};%] for details.
<HR>