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

Re: VB "On Error" Equivalent in Perl

by bdimych (Monk)
on Nov 29, 2007 at 13:30 UTC ( [id://653830]=note: print w/replies, xml ) Need Help??


in reply to VB "On Error" Equivalent in Perl

I may be not exactly right, but in perl, quite the contrary, majority of errors do not make script exit. Most functions return false or undef on error and it can be checked just with "if" operator. Imho, there is rather opposite problem in perl - how to implement exceptions and try/catch

I agree too, that 'eval'+module documentation is the guaranteed right way

PS could you provide example

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-25 22:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found