in reply to error handling with Net::FTP
#!/usr/bin/perl -w use strict; use Net::FTP; my $ftp = Net::FTP->new("ftp.host.name") or die("Couldn't connect: $@\n"); $ftp->login("Username"); $ftp->cwd("/pub/scripts/networking"); $ftp->get("ping.pl"); $ftp->close;
|
|---|