Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Sizes of copied files are not right

by mikeraz (Friar)
on Apr 21, 2011 at 18:02 UTC ( [id://900680]=note: print w/replies, xml ) Need Help??


in reply to Sizes of copied files are not right

The default file transfer type is ASCII. If the line endings are different on your two system (Unix vs Win for example) all occurrences of newline will be converted.

Your file types appear to be binary data - not text files. Stting the file transfer mode to bin will address this issue.


Be Appropriate && Follow Your Curiosity
  • Comment on Re: Sizes of copied files are not right

Replies are listed 'Best First'.
Re^2: Sizes of copied files are not right
by Anonymous Monk on Apr 21, 2011 at 18:05 UTC

    how do i set that?

      As roboticus stated, the command (given your example code) would be $ftp->binary; the Net::FTP manpage explains this.


      Be Appropriate && Follow Your Curiosity

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-19 03:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found