Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Handling Mac, Unix, Win/DOS newlines at readtime...

by Zaxo (Archbishop)
on Sep 16, 2002 at 01:59 UTC ( [id://198135]=note: print w/replies, xml ) Need Help??


in reply to Handling Mac, Unix, Win/DOS newlines at readtime...

Your proposal looks fine. Ideally, your file transfers should be in ASC mode but you can't rely on people doing that.

You could take the opportunity to translate lineends to native format for the server.

Do you mean ... die "$filename can't... ?

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: Handling Mac, Unix, Win/DOS newlines at readtime...
by sauoq (Abbot) on Sep 16, 2002 at 03:57 UTC
    Ideally, your file transfers should be in ASC mode but you can't rely on people doing that.

    That assumes FTP and doesn't even apply to other common (and arguably better) methods such as HTTP, scp, rsync, etc.

    -sauoq
    "My two cents aren't worth a dime.";
    
      We ask folks to FTP into the server. Unfortunately, this does pose some problems. First one is "I can't get it working behind my firewall" (solution: WebFTP). The second one is having consistent file transfers in the right format. Given that not only the users aren't smart enough to do it, but the programs as well, we better code properly.

      --
      $Stalag99{"URL"}="http://stalag99.keenspace.com";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-19 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found