Help for this page

Select Code to Download


  1. or download this
    my $func_name = ( $someCondition ? 'foo' : 'bar' );
    my $func_ref = __PACKAGE__->can($func_name);            # or other pac
    +kage
    $func_ref->($arg1, $arg2);