"be consistent" | |
PerlMonks |
Re: Re: Whatever happened to chomp?by CombatSquirrel (Hermit) |
on Dec 14, 2003 at 15:24 UTC ( [id://314641]=note: print w/replies, xml ) | Need Help?? |
L~R: Non-numeric arguments are treated as 0 in numeric operations. == is a numeric comparision operator, its string equivalent being eq. I remember reading somewhere (maybe the camel or llama book) that numbers in string representations may have a newline character after them, which would explain why you don't need to chomp. I couldn't find the passage, though. Cheers, CombatSquirrel. Entropy is the tendency of everything going to hell.
In Section
Seekers of Perl Wisdom
|
|