Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: VB "On Error" Equivalent in Perl

by wind (Priest)
on Nov 29, 2007 at 01:41 UTC ( [id://653740]=note: print w/replies, xml ) Need Help??


in reply to Re^2: VB "On Error" Equivalent in Perl
in thread VB "On Error" Equivalent in Perl

That is explained in the documentation for Net::FTP.
If the constructor fails undef will be returned and an error message will be in $@.
All other Net::FTP methods save their error message in $ftp->message.

I've also sometimes wondered about the logic of this. Nevertheless, that's the way it is.

- Miller

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://653740]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-18 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found