Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Would you use 'goto' here?

by Fletch (Chancellor)
on Dec 06, 2001 at 07:03 UTC ( #129841=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %query_to_sub = ( officeID => \&edit_office_product,
                         fnord    => \&vreemflitzel );
    $query_to_sub{ $query->param( 'spoo' ) }->()
    
  2. or download this
    my $method = $foo->can( $query->param( 'behavior' ) );
    if( defined( $method ) ) {
    ...
    } else {
      do_error( "Unknown method " . $query->param( 'behavior' ) );
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2014-07-23 21:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (152 votes), past polls