in reply to Transfer Folder Using Net::FTP
You can find documentation on installed perl modules by typing perldoc ModuleName, in your case perldoc Net::FTP.
It says (amongst other things):
Personally, i'd probably use scp instead. It's much more secure, and with a properly configured key pair, all you need to do is...SNOPSYS use Net::FTP; $ftp = Net::FTP->new("some.host.name", Debug => 0) or die "Cannot connect to some.host.name: $@"; $ftp->login("anonymous",'-anonymous@') or die "Cannot login ", $ftp->message; $ftp->cwd("/pub") or die "Cannot change working directory ", $ftp->message;put ( LOCAL_FILE [, REMOTE_FILE ] ) Put a file on the remote server. "LOCAL_FILE" may be a name or a filehandle.
scp -r localdir remote.host:/remote/dir
|
|---|