Hallo marko,
$ftp = Net::FTP->new("$Host");
$ftp->login("anonymous","me@here.there");
<zitat_aus_modul-doku>
methods
Unless otherwise stated all methods return either a true or false value, with true meaning that the operation was a
success. When a method states that it returns a value, failure will be returned as undef or an empty list.
</zitat_aus_modul-doku>
dadurch ergibt sich beispielsweise folgender Code:
$ftp->login("anonymous","me@here.there") or die "Nix da mit login";
oder
if($ftp->login("anonymous","me@here.there"))
{
&mach_weiter();
}
else
{
&maul_herum_wegen_login_fehler();
}
Dies entspricht dem üblichen Verhalten von MEthoden und Funktionen in Perl.
Alles klar?
Klaus