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.
|
---|
In Section
Seekers of Perl Wisdom