Help for this page

Select Code to Download


  1. or download this
    if (defined($q->param())) {
        if ($q->param('action') eq 'add') {
    ...
    } else {
        &action_dialog();
    }
    
  2. or download this
    sub get_branch_function {
        my $query = shift;
    ...
            return $dispatch{ $action }{ confirm }{ commit };
        }
    }
    
  3. or download this
            my %dispatch = (
                    add => {
    ...
                            },
                            default => \&choose_dialog,
                    },
    
  4. or download this
                    modify => {
                            update => {
    ...
                            },
                            default => \&choose_dialog,
                    },
    
  5. or download this
                    default => \&action_dialog
            );
    
  6. or download this
    sub dispatch_table {
            my $q = shift;
    ...
                    },
                    default => \&action_dialog
            );
    
  7. or download this
            if (! exists $dispatch{$action}) {
                    return $dispatch{default}
    ...
                    return $dispatch{$action}{confirm}{commit};
            }
    }