Help for this page

Select Code to Download


  1. or download this
    sub foo {}
    sub bar {}
    ...
    if ( my $ref = main->can($method) ) {
        $ref->();
    }
    
  2. or download this
    {
        sub foo{}
    ...
                     bar => \&bar,
                     baz => \&baz,
                     qux => \&qux );