Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Cygwin perl... ftp... Windows line endings...

by halley (Prior)
on May 07, 2003 at 20:06 UTC ( [id://256369]=note: print w/replies, xml ) Need Help??


in reply to Cygwin perl... ftp... Windows line endings...

If the Net::FTP module handles the ASCII transfer mode, it should be able to request it of the server for those files which need it. Then one side strips out carriage returns in transit. That's what it's for. BINARY mode keeps both sides' bytes intact, which sounds like what's happening for you.

Cygwin has a setting for whether or not the programs will work with \x0D\x0A or \x0A as the default value for \n. I don't know whether you've looked into that, or if it's something you can change in your circumstances.

--
[ e d @ h a l l e y . c c ]

  • Comment on Re: Cygwin perl... ftp... Windows line endings...

Replies are listed 'Best First'.
Re: Re: Cygwin perl... ftp... Windows line endings...
by boston_guy1 (Initiate) on May 08, 2003 at 13:20 UTC
    Thanks for your time. But if you could throw some light on how the stripping is done in transit. I am using ftp->ascii(). And i did not find anything more than this in the docs that would say, ok strip these text files for the line endings except the Hash. Which did not help much. Cheers K

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-18 23:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found