Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: VB "On Error" Equivalent in Perl

by bdimych (Monk)
on Nov 29, 2007 at 13:30 UTC ( #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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://653830]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2018-07-18 07:12 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (383 votes). Check out past polls.