Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Why I Hate Nested If-Else blocks

by mstone (Deacon)
on Jan 05, 2002 at 04:20 UTC ( #136426=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        if ($a) {
            if ($b) {
    ...
                &S4;
            }
        }
    
  2. or download this
                                       +-----(b)->[S1]--+
                                       |                |
    ...
                  +-(not-a)->[test c]--+                |--+
                                       |                |
                                       +-(not-c)->[S4]--+
    
  3. or download this
                                 +-----(b)->[S1]-+
                                 |               |
    ...
             +-(not-a)->[test c]-+                 |
                                 |                 |
                                 +-(not-c)->[S4]---+
    
  4. or download this
                                   +-----(b)->[S1]->[S5]-+
                                   |                     |
    ...
              +-(not-a)->[test c]--+                     |--+
                                   |                     |
                                   +-(not-c)->[S4]->[S6]-+
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (14)
As of 2014-08-21 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (136 votes), past polls