Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Why I Hate Nested If-Else blocks

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

Help for this page

Select Code to Download


  1. or download this
    %FLUT = (
        'condition_1' => \&func_1,
    ...
    
    $condition = ##  reduce the input to a known condition
    $FLUT{$condition}->(@args);
    
  2. or download this
    package Command;
    
    ...
        my $O = shift;
        return ($O->( @_ ));
    }
    
  3. or download this
    package Machine;
    
    ...
    
    
    1;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2015-07-28 17:54 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 (258 votes), past polls