in reply to error handling with Net::FTP

Hi Costas,

I would use something like this:

#!/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;

The error will be stored in the special $@ variable.

Hope this helps,

Thanks,
-DigitalKitty