Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How to control UNIX vs DOS line feeds in Perl

by Fastolfe (Vicar)
on Oct 13, 2000 at 22:13 UTC ( [id://36634]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    binmode(FH);
    local $/ = "\cM\cJ";  # CRLF
    ...
    while (<FH>) { 
       # This might actually work, given that it honors $/
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-25 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found