Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Error Handling Misconception

by Roger (Parson)
on Sep 05, 2003 at 02:14 UTC ( #289082=note: print w/replies, xml ) Need Help??


in reply to Error Handling Misconception

The while loop would fail if your eval { $object->next_val() } returns undef (or fails), thus it will never get into the error checking code when the evaluation fails. If you switch to a do { eval; check; ... } while loop, then the error handling will be effective.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2020-05-31 17:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (175 votes). Check out past polls.

    Notices?