Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: (Ovid - Why I love nested If-Else blocks)

by runrig (Abbot)
on Jan 04, 2002 at 02:53 UTC ( #136133=note: print w/replies, xml ) Need Help??


in reply to (Ovid - Why I love nested If-Else blocks)
in thread Why I Hate Nested If-Else blocks

You can debate all day about whether this is good or bad, better or worse (as we seem to be doing on that other thread), but I'm compelled to mention it (-:
{ last unless $foo > 7; bar_func($foo),last if $bar; # Or... $bar and do { bar_func($foo); last }; baz_func($foo), last if $baz; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://136133]
help
Chatterbox?
[zentara]: LanX no! I was learning why Krishna made me into a unicorn. :-)
[LanX]: The old chromosone question ... Why Y???
[zentara]: Y succeeds X then preceeds Z . There is a deep meaning in that :-)
[zentara]: unicorns have a Z chromosome

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2017-03-30 16:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (362 votes). Check out past polls.