Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by Tortue (Scribe)
on Oct 13, 2005 at 10:58 UTC ( #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? | Other CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2022-08-19 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?