in reply to chop and chomp
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