Kristofer Wolff wrote:
> 
> hi folks,
> 
> quik questions:
> where are the errors form the Net:FTP module ?? i can'T get there in $!.
> 
> ex:
> if($ftp = Net::FTP->new("$IN{ftp_server}"))
>         {
>                 #...
>         }
> else
> {
>         print "ERR = $!"
> }
> 
> it prints out :
> ERR =

This works for me:

my $ftp = Net::FTP->new ($host) or die "Error connecting to $host: $!\n";

You could replace the die ... with a compound stmt including a print I suppose.
-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED] 
  / ) /--<  o // //      http://dbecoll.webjump.com/ (Free Perl site)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to