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' ) );
    }