http://qs1969.pair.com?node_id=1057181


in reply to Re^3: chomp() is confusing
in thread Why chomp() is not considering carriage-return

Good news, as of Perl 5.1, you can use the \R $line =~ s/\R//g; It will figure it out.