Help for this page

Select Code to Download


  1. or download this
    sub comb {
        my $s = shift;
    ...
        comb("$s$_",@_) for @{shift()};
    }
    comb '',[qw(a b c)],[qw(1 2 3)],[qw(- + *)];
    
  2. or download this
        if (@_ == 1) { dowhatever("$s$_") for @{$_[0]}; return; }