No, the first error is because he's "passing" something to chomp() that can't be modified in place.
Try
It's clearly a SCALAR, yet it won't work.chomp(" foo ");
In reply to Re: Re: Chomp(<handle>)
by dws
in thread Chomp(<handle>)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |