http://qs321.pair.com?node_id=751192


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.