Help for this page

Select Code to Download


  1. or download this
    # Define a list of 'actions' by listing function names
    my %function = map { $_ => \&$_ } qw[
             post
    ...
    
    my $action = something();           # Wherever you get it
    $function{$action}->(@somestuff);   # Pass any parameters