Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: comprehensive error handling

by Aristotle (Chancellor)
on Jul 16, 2003 at 18:30 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://274974]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found