Help for this page

Select Code to Download


  1. or download this
    sub call_twice {
        my $func = shift;
        &$func("first");
    ...
    call_twice(\&foo);
    
    call_twice(sub { print "bar: @_\n" });