in reply to File Rename
Net::FTP allows you to specify a new name and location for a file when you are getting or putting a file - I would assume other FTP methods/modules would do the same.use Net::FTP; my $mytime = localtime; my $file = "filea" # Set up the FTP my $ftp = new Net::FTP; $ftp->login('name', 'password'); # If you're putting the file somewhere... $ftp->put($file, "$file$mytime"); # Or if you're getting the file from somewhere... $ftp->get($file, "$file$mytime"); $ftp->close();
|
|---|