perlquestion
DaWolf
Wich one is the best way to reset a variable?
<br><br>
1st method:
<code>
foreach $foo(@foo)
{
undef $bar;
...
$bar = $some + $thing;
}
</code>
2nd method:
<code>
foreach $foo(@foo)
{
$bar = 0;
...
$bar = $some + $thing;
}
</code>
TIA,
DaWolf
<p><i>Originally posted as a Categorized Question. </i></p>