<?xml version="1.0" encoding="windows-1252"?>
<node id="280" title="perlfunc:local" created="1999-08-24 18:42:51" updated="2005-08-15 10:54:03">
<type id="119">
perlfunc</type>
<author id="114">
gods</author>
<data>
<field name="doctext">
</field>
<field name="name">

&lt;P&gt;
local - create a temporary value for a global variable (dynamic scoping)

&lt;P&gt;
&lt;HR&gt;
</field>
<field name="synopsis">

&lt;P&gt;
local 
&lt;FONT SIZE=-1&gt;EXPR&lt;/FONT&gt;

&lt;P&gt;
&lt;HR&gt;
</field>
<field name="description">

&lt;P&gt;

&lt;FONT SIZE=-1&gt;A&lt;/FONT&gt; 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=&gt;"Temporary_Values_via_local_"};%]
for details, including issues with tied arrays and hashes.

&lt;P&gt;
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=&gt;"Private_Variables_via_my_"};%] for details.

&lt;HR&gt;
</field>
</data>
</node>
