Problems? Is your data what you think it is? | |
PerlMonks |
(Re:)**4 Can this If/Else be condensed into a 1 liner with a trailing If?by bwana147 (Pilgrim) |
on Oct 02, 2001 at 19:08 UTC ( [id://116148]=note: print w/replies, xml ) | Need Help?? |
Actually, whithin a while (<STDIN>) {...}, the $_ contains the trailing \n. So even though a line might contain a lone zero, it will indeed be "0\n", which is definitely true. --bwana147
In Section
Seekers of Perl Wisdom
|
|