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

Re: Question on style/technique

by VSarkiss (Monsignor)
on Jul 06, 2001 at 05:47 UTC ( #94361=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (open(FH, $file))
    {
        ...complicated logic extending many many lines....
    ...
    {
        warn "Couldn't open $file: $!"\n";
    }
    
  2. or download this
    unless (open(FH, $file))
    {
        ...send email, sound the klaxons, raise a ruckus, etc.
    ...
    {
        ....do fun stuff with FH
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2021-03-08 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (127 votes). Check out past polls.

    Notices?