<?xml version="1.0" encoding="windows-1252"?>
<node id="96412" title="Re: When is $_ local and when is it not?" created="2001-07-13 14:36:38" updated="2005-07-19 14:08:39">
<type id="11">
note</type>
<author id="85580">
dragonchild</author>
<data>
<field name="doctext">
I know that I've started to do something like:
&lt;p&gt;&lt;code&gt;sub foo {
    local $_;

     my ($var1, $var2) = @_;

...

}
&lt;/code&gt;
&lt;p&gt;in all my personal "production-level" code. (I'm an avid user of $_.) While this can result in a slight performance hit, I change my personal code around enough that have that template just makes me feel safer about using $_.
&lt;p&gt;Just a suggestion. :)</field>
<field name="root_node">
96369</field>
<field name="parent_node">
96369</field>
</data>
</node>
