Help for this page

Select Code to Download


  1. or download this
    sub function_1 { print "One\n" }
    sub function_2 { print "Two\n" }
    
    ...
            &{ "function_$no" }; # <--- THIS THING
        }
    }
    
  2. or download this
    sub function_1 { print "One\n" }
    sub function_2 { print "Two\n" }
    
    ...
    
        $functions{$no}->();
    }