We don't bite newbies here... much | |
PerlMonks |
Re: chop and chompby ikegami (Patriarch) |
on Mar 17, 2009 at 13:46 UTC ( [id://751192]=note: print w/replies, xml ) | Need Help?? |
chop removes the last character of each argument. chomp removes the last character(s) of each argument if they're equal to the value of $/. chomp is useful in combination with <$fh> because <$fh> reads until the value of $/ or eof is found.
In Section
Seekers of Perl Wisdom
|
|