Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Beginners guide to Net::FTP

by RMGir (Prior)
on Aug 14, 2002 at 12:29 UTC ( [id://190045]=note: print w/replies, xml ) Need Help??


in reply to Beginners guide to Net::FTP

Nice guide, ++.

But don't forget binary!

The version you wrote will work fine if you're running from a Unix client box to a Unix server.

But if the client side is a Win32, Mac, or VMS box (and maybe if the server side is) you want to make sure you call

$f->binary();
before you do any other operations. From the perldoc
The protocol also defines several standard translations which the file can undergo during transfer. These are ASCII, EBCDIC, binary, and byte. ASCII is the default type, and indicates that the sender of files will trans- late the ends of lines to a standard representation which the receiver will then translate back into their local representation.

--
Mike

Replies are listed 'Best First'.
Re^2: Beginners guide to Net::FTP
by Anonymous Monk on Apr 14, 2009 at 02:03 UTC
    Is it possible to execute 'ls -la' via Net::FTP. I'm using the module but the server creates files that begin with a '.' and I need to see those.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found