in reply to net::ftp multiple files
This will go thru the parameters given at the command line (like "./ftp.pl file1 file2 file3") and FTP them.#!/usr/bin/perl use Net::FTP; foreach (<@ARGV>) { $ftp = Net::FTP->new("HOST", Debug => 0); $ftp->login("login","password"); $ftp->put($_); } $ftp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: net::ftp multiple files
by nkpgmartin (Sexton) on May 10, 2001 at 00:03 UTC |