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 reply to Re: chop and chomp
by ikegami
in thread chop and chomp
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |