From what I have understood, with Perl 6, maybe even
Perl 5.8.0, you can open a file and specify at the
same time the input will be automatically chomped.
Great!
By the way, I have done this mistake myself. It was
a long time ago, I cannot remember specific
details.