Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    our $a="func";
    ...
      &$a(42);
    }
    
  2. or download this
    my %dispatch=(
        func1 => sub { print shift },
    ...
           );
    
    $dispatch{func1}->(42);