in reply to Re: Error ftping file with Net::FTP
in thread Error ftping file with Net::FTP

Is there a bug in Net::FTP?
I am checking if the file exists using this command:
my @check = $ftp->ls("$filename"); I am getting an error:
Can't use an undefined value as a symbol reference at /Net/FTP/datacon +n.pm line 54.

Any suggestions?

Replies are listed 'Best First'.
Re^3: Error ftping file with Net::FTP
by hippo (Archbishop) on Aug 16, 2017 at 16:08 UTC
      Yes, that seems to fix the issue:
      my $ftp = Net::FTP->new($host, Debug => 0, Passive => 0) or die "Could not connect to '$host': $@";

      Thank you!