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

Re^2: Control Structures

by Mutant (Priest)
on May 10, 2005 at 11:51 UTC ( [id://455528]=note: print w/replies, xml ) Need Help??


in reply to Re: Control Structures
in thread Control Structures

As others have posted, I don't find problems with this either. Although as soon as these sort of statements start becoming complicated, you're much better off using a proper if () {} block.

I find trailing if/unless can greatly improve the readability of code (which hopefully helps to reduce bugs).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-03-28 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found