in reply to Re^2: New to Perl: Finding files on FTP
in thread New to Perl: Finding files on FTP

If you can't change to the directory, you probably can't list the directory or get files from the directory either. Add $ftp->message() to all the "or die" messages after the connect to get the reason for failure (on connect, $@ gives the reason). E.g.:
... or die "cannot list any DIRs " . $ftp->message();

Replies are listed 'Best First'.
Re^4: New to Perl: Finding files on FTP
by Klaas (Initiate) on Mar 15, 2012 at 10:58 UTC
    Thanks, will do!