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

Re: comprehensive error handling

by Aristotle (Chancellor)
on Jul 16, 2003 at 14:30 UTC ( #274974=note: print w/replies, xml ) Need Help??


in reply to comprehensive error handling

Use either simple parens and a single expression:
open (...) or ($errormsg = $!, $status = -1);
or expressify a block using do:
open (...) or do { $errormsg = $!; $status = -1; }

Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2020-12-04 23:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (63 votes). Check out past polls.

    Notices?