On Mar 8, 2013, at 4:47 PM, Chris Stinemetz wrote:

> U
> sing Net::FTP is there a way to rename a file after locating it and before
> putting it?
> 
> For example:
> 
> $ftp->put('/storage/pcmd/2013-03-08.17:21.-0700.MMEpcmd.gz') || die "can't
> put file: $!";
> 
> Doesn't transfer correctly because the windows FTP server doesn't allow ":"
> in the file name.

The Net::FTP->put() method takes a second argument for the remote file name.

See 'perldoc Net::FTP' for details.


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to