in reply to
chomp ^M ?
I prefer to do it like this:
s/[\r\n]+$//;
[download]
This will take care of any line-end, might it be DOS (CR LF), *NIX (LF) or Mac (CR).
Comment on
Re: chomp
Download
Code
In Section
Seekers of Perl Wisdom