Win32, FTP, line ends

P

Phil Hibbs

I'm using Net::FTP on ActiveState perl 5.8.0 and I'm having a problem
with line ends.

The source files are MS-style with CR/LF line ends, and I'm FTPing the
file to an MVS mainframe (EBCDIC). The files received at the other end
still have the CR x'0D' character at the end.

I have worked around the problem by making a temp copy of the file and
converting the line ends to Unix-style and then FTPing that file, but
how can I get Net::FTP to behave as though the local platform were
Win32 (which it is)? It's behaving like a Unix FTP client.

Phil Hibbs
http://www.perlmonks.org/index.pl?node=PhilHibbs
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,137
Messages
2,570,797
Members
47,342
Latest member
eixataze

Latest Threads

Top