rbi has asked for the wisdom of the Perl Monks concerning the following question:
If the $directory is empty, on Linux I get:... my $ftp = Net::FTP->new($hostname, Debug => 1, Passive => 1); $ftp->login($user,$password); $ftp->cwd($directory); my $ref= $ftp->ls(); die Dumper($ref);
Instead on Windows I get correctly:Can't use an undefined value as a symbol reference at /usr/lib/perl5/5 +.8.8/Net/FTP/dataconn.pm line 53.
How could I fix this behaviour on Linux ? Thanks for any hint/explaination.$VAR1 = undef;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FTP behavior under Linux and Windows
by blazar (Canon) on Oct 23, 2006 at 12:07 UTC | |
by rbi (Monk) on Oct 23, 2006 at 13:04 UTC | |
|
Re: Net::FTP behavior under Linux and Windows
by Anonymous Monk on Oct 23, 2006 at 13:35 UTC | |
by rbi (Monk) on Oct 24, 2006 at 07:28 UTC |