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