toohoo has asked for the wisdom of the Perl Monks concerning the following question:
Hello Perlmonks,
I get the message:
Can't use an undefined value as a symbol reference at /usr/share/perl/5.10/Net/FTP/dataconn.pm line 54.in using Nett::Ftp .
There is a special feature which is other at one customer as at the others. This one needs - so it does seem - Passive mode, the others don't. The difference is the following:
Normaly I call
$ftp = Net::FTP->new($server) or die "Cannot connect to $server: $@";
In the case of this single customer I call
$ftp = Net::FTP->new($server, Passive => 1) or die "Cannot connect to $server (Passive=$passiv +e): $@";
But as you might see, this is not the point of the error because it does not give the message of the die.
Do anyone has any idea what could be wrong?
thanks in forehand and regards, Thomas
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "Can't use an undefined value as a symbol reference" in using Net::Ftp
by Corion (Patriarch) on Aug 09, 2013 at 13:42 UTC | |
by toohoo (Beadle) on Aug 12, 2013 at 05:46 UTC | |
by Corion (Patriarch) on Aug 12, 2013 at 08:00 UTC | |
by toohoo (Beadle) on Aug 12, 2013 at 08:23 UTC | |
by toohoo (Beadle) on Sep 09, 2013 at 11:50 UTC | |
by Corion (Patriarch) on Sep 09, 2013 at 13:18 UTC | |
|