I'm a bit baffled by the question - it's not that you assume chomp leaves its arguments untouched and returns the the chopped lines - then you would have written the first fragment as
which would result in an error.my @lines = chomp(<STDIN>);
In reply to Re: Unexpected chomp behavior
by JavaFan
in thread Unexpected chomp behavior
by saintex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |