DaWolf has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (input and output)
Wich one is the best way to reset a variable?
1st method:
1st method:
2nd method:foreach $foo(@foo) { undef $bar; ... $bar = $some + $thing; }
TIA, DaWolfforeach $foo(@foo) { $bar = 0; ... $bar = $some + $thing; }
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: undef vs. $foo = 0⭐
by ariels (Curate) on May 02, 2002 at 14:39 UTC | |
Re: undef vs. $foo = 0
by crazyinsomniac (Prior) on May 03, 2002 at 05:11 UTC | |
Re: undef vs. $foo = 0
by Mur (Pilgrim) on May 06, 2002 at 14:29 UTC | |
Re: undef vs. $foo = 0
by Mur (Pilgrim) on May 06, 2002 at 14:58 UTC |
Back to
Seekers of Perl Wisdom