in reply to NET::FTP Problem
#!/usr/bin/perl -wd use strict; use warnings; use Net::FTP; my $file = "ftp.pl"; my $host = "some_host"; my $user = "a_user"; my $pass = "the_pass"; my $ftp = Net::FTP->new( $host ) or die "Could not open $host\n"; $ftp->login( $user, $pass ) or die "Could not login\n"; $ftp->put( $file ) or die "Could not put $file\n"; $ftp->quit();
-derby
update: Updated the error messages (thanks runrig and see Beginners guide to Net::FTP).
|
|---|