Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: The joys of bad code

by bgreenlee (Friar)
on Nov 09, 2004 at 23:15 UTC ( #406557=note: print w/ replies, xml ) Need Help??


in reply to The joys of bad code

I just came across these two gems written by a coworker (slightly simplified--comments are mine):

if ($some_condition) { } else { # do something ... }

and

if ($x > 10) { # do something } elsif ($x <= 10) { # do something else } else { # do something else }

-b


Comment on Re: The joys of bad code
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2015-07-06 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (72 votes), past polls