laziness, impatience, and hubris | |
PerlMonks |
Re^2: A regex BR variable dead in following line/commandby LanX (Saint) |
on Nov 12, 2021 at 16:40 UTC ( [id://11138763]=note: print w/replies, xml ) | Need Help?? |
> Also, using $2 as a loop condition smells a bit fishy Indeed, the idiomatic expression is rather
The only reason to check $2 separately, is to make sure it's not false ( "", 0, undef, etc ) this can be done with
tho I doubt the OP is aware of all those false cases.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|