good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: help with (what I consider) a strange problemby sachmet (Scribe) |
on Mar 19, 2001 at 07:26 UTC ( [id://65351]=note: print w/replies, xml ) | Need Help?? |
Nope... chomp returns number of chars chopped. So: $t = "t\n"; $num = chomp($t); print "$num" prints "1", whereas: $t = "t"; $num = chomp($t); print "$num" prints "", whereas:
prints "3". (edited: error in my code fixed)
In Section
Seekers of Perl Wisdom
|
|