Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Quick and portable way to determine line-ending string?

by tachyon (Chancellor)
on Aug 09, 2001 at 04:46 UTC ( [id://103300]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    seek DATA,-6,1;   # back up into __DATA__ string
    binmode DATA;
    ...
    # prints (on Win32)
    0xd
    0xa
    
  2. or download this
    my $tmp = 'c:/tmp.tmp';
    open TMP, "+>$tmp" or die $!;
    ...
    #prints (on Win32)
    0xd
    0xa
    

Log In?
Username:
Password:

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

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

    No recent polls found