Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 about the Monastery: (18)
As of 2015-07-31 15:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls