Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by tachyon (Chancellor)
on Aug 09, 2001 at 04:46 UTC ( #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
Node Status?
node history
Node Type: note [id://103300]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2014-10-31 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (219 votes), past polls