Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by mstone (Deacon)
on Jan 05, 2002 at 04:20 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://136426]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-03-28 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found