Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: CR-LF Newlines as 2 distinct characters

by Thelonius (Priest)
on May 19, 2006 at 13:27 UTC ( [id://550491]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open PLAYLIST, ">", "playlist.plp" 
        or die "Couldn't open playlist.plp: $!\n";
    ...
    print PLAYLIST "abcd\r\n";
    $\ = "\r\n";
    print PLAYLIST "efgh";
    
  2. or download this
    open PLAYLIST, ">:raw:encoding(utf16le)", "playlist.plp" 
        or die "Couldn't open playlist.plp: $!\n";
    print PLAYLIST "abcd\r\n";
    $\ = "\r\n";
    print PLAYLIST "efgh";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-07-19 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.