in reply to Unexpected chomp behavior
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>);
|
|---|