Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Coding styles using if/else

by rhesa (Vicar)
on Apr 05, 2007 at 23:11 UTC ( [id://608573]=note: print w/replies, xml ) Need Help??


in reply to Coding styles using if/else

I use that pattern all the time. When I'm validating input, I want to bail out at the first sign of trouble. Once all input passes scrutiny, I continue with business. No need for an else clause in that case.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-25 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found