or a simple regexp $foo =~ s/.$//; which to me is perfectly readable
...but will not handle multi-byte characters. chop will.
~Particle *accelerates*
In reply to Re^2: a farewell to chop
by particle
in thread a farewell to chop
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |