Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Perl line endings: something broken in ActiveState Perl 5.8?

by Tortue (Scribe)
on Oct 13, 2005 at 10:58 UTC ( [id://499851]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://499851]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-18 06:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found