Help for this page

Select Code to Download


  1. or download this
    sub repeat {
            my $n = shift;
    ...
            eval 'sub _apply { my $f = shift; my $x = shift; $f->(' . join
    +(',', @{$app}) . '); }';
            return _apply(\&$func, $args);
    }
    
  2. or download this
    sub test {
            my $x = shift;
    ...
    }
    # output 6
    apply(\&test, [1,2,3]);