<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Local variable - Page 11 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=local_variable&amp;p=10">1.Previous</a><br />
<a accesskey="3" href="page.php?w=local_variable&amp;p=12">3.Next</a>
</p>
<p>define local dynamically-scoped variables, while <code>my</code> is used for local lexically-scoped variables.  Since dynamic scoping is less common today, the Perl documentation warns that "<code>local</code> isn't what most people think of as "local".".  Instead, the <code>local</code> keyword gives a temporary, <a href="page.php?w=scope_%28computer_science%29">dynamically-scoped</a> value to a global (package) variable, which lasts until the end of the enclosing block. However, the variable is visible to any function called from within the</p><p>
<a accesskey="1" href="page.php?w=local_variable&amp;p=10">1.Previous</a><br />
<a accesskey="3" href="page.php?w=local_variable&amp;p=12">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
