I disagree. They are the same error message:
Can't modify %s in %s
(see perldoc perldiag, search for modify)
chomp can only modify an lvalue, and neither a 'constant item' nor '<filehandle>' are lvalues, just as dws said.
--In reply to Re: Re^3: Chomp(<handle>)
by edan
in thread Chomp(<handle>)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |