in reply to Re^2: Perl line endings: something broken in ActiveState Perl 5.8?
in thread Perl line endings: something broken in ActiveState Perl 5.8?

You can get Perl to see the \r on input by setting the PERLIO environment variable to :raw.
set PERLIO=:raw perl -ne "print if /\r/" file.txt [displays lines]
This also allows you to write to text files without getting \r inserted. But it still doesn't solve the -i problem. Which kinda looks like a bug.
  • Comment on Re^3: Perl line endings: something broken in ActiveState Perl 5.8?
  • Download Code