Help for this page

Select Code to Download


  1. or download this
    my %actions = (
        1 => \&error_entry,
    ...
    
    my $action_sub = $actions{$value_to_check} || \&default_action;
    $action_sub->($args_for_this);
    
  2. or download this
    $object->$method($args_for_this);