
December 31st, 2000, 02:55 PM
|
|
Contributing User
|
|
Join Date: Aug 2000
Location: Indiana
Posts: 614
  
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 14
|
|
|
#!/usr/bin/perl
use Net::FTP;
$ftp = Net::FTP->new("ftp.domain.com", Debug => 0);
$ftp->login('username','password');
$ftp->binary;
#or
$ftp->ascii;
$ftp->cwd("directory");
$ftp->put("/path/to/file.txt");
$ftp->quit;
You'll find most or all ftp commands worth perfectly through this module.
|