Schrift
[thread]4329[/thread]

ftp login: fehler



<< >> 2 Einträge, 1 Seite
steinwolf
 2005-01-20 17:22
#37966 #37966
User since
2003-08-04
367 Artikel
BenutzerIn
[default_avatar]
Fehler gefunden:

Debug => $debug

:D
"Did you know? You can use your old motor oil to fertilize your lawn." - Blinkster - Professionelles EDV Forum
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
<< >> 2 Einträge, 1 Seite



View all threads created 2005-01-20 17:22.