Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: An idiom for selecting true, false, or undef.

by perrin (Chancellor)
on Mar 17, 2009 at 16:16 UTC ( [id://751235]=note: print w/replies, xml ) Need Help??


in reply to An idiom for selecting true, false, or undef.

Your first way seems totally fine to me. You could use the "condition or die" approach that people use for file operations:
defined $pid or die "failed to fork: $!";

Log In?
Username:
Password:

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

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

    No recent polls found