Help for this page

Select Code to Download


  1. or download this
    my %dispatch = (
    foo => &somefunc,
    bar => &someotherfunc,
    baz => sub {...}
    );
    
  2. or download this
    my $funcname = ( $someCondition ? 'foo' : 'bar' );
    $funcname->($arg1, $arg2);