Thread ftp login: fehler (1 answers)
Opened by steinwolf at 2005-01-20 17:22

steinwolf
 2005-01-20 17:20
#37967 #37967
User since
2003-08-04
367 Artikel
BenutzerIn
[default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!C:/perl/bin/perl -w

use strict;
use Net::FTP;

my $host = "homepage.de";
my $debug = 0;
my $name = "username";
my $passw = "psw123";

my $ftp = Net::FTP->new($host, $debug);

sub ftpLogin
{
$ftp->login($name, $passw);
$ftp->quit;

return 1;
}

if(&ftpLogin)
{
print "OK";

}


Fehlermeldung:
Use of uninitialized value in join or string at C:/Perl/lib/IO/Socket/INET.pm li
ne 83.
Can't call method "login" on an undefined value at C:\perl\bin\collect.pl line 1
6.



???
"Did you know? You can use your old motor oil to fertilize your lawn." - Blinkster - Professionelles EDV Forum

View full thread ftp login: fehler