Help for this page

Select Code to Download


  1. or download this
    
    sub p{my($n,@e,$o)=@_;print if!$_{$_=join$",sort@_,$/}++;p(++$o,--$n,@
    +e)while$n-1}p(shift)
    
  2. or download this
    
    sub p{my($n,@e,$o)=@_;$_{$_=join$",sort@_,$/}++||print;p(++$o,$n,@e)wh
    +ile--$n}p pop
    
  3. or download this
    
    sub p{my(@e,$o)=@_;$_{$_=join$",sort@_,$/}++||print;p(++$o,@e)while--$
    +e[0]}p pop
    
  4. or download this
    
    sub p{
    ...
    }
    p(shift)
    
  5. or download this
    
    my($n,@e,$o) = @_;
    ...
    my @e = @_;
    my $o;
    
  6. or download this
    
    print if ! $_{$_ = join$",sort@_,$/}++;
    
  7. or download this
    
    p(5)
    ...
            calls p(1,1,1,1,1)
              outputs 1,1,1,1,1