Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: (Golf) Ordered Combinations

by satchboost (Scribe)
on Apr 25, 2001 at 01:55 UTC ( [id://75281] : note . print w/replies, xml ) Need Help??

in reply to (Golf) Ordered Combinations

I know that I'm bending the rules a little, but this does get below 50.

sub c{my$n=pop;--$n?map{my$c=$_;map$c.$_,c(@_,$n)}@_:@_}


print join " ", c qw(a b c 2); print "\n"; print join " ", c qw(0 1 4); print "\n";