http://www.perlmonks.org?node_id=160580


in reply to Re: RE: Permutations and combinations
in thread Permutations and combinations

lol, you bother to look upon this old piece of code :))

heh, of course that your snippet is good, but a swap routine could be written even simpler:

sub swap { reverse @_ }
... heh, it's not the case for that code thou, as the array is a global one :) cheers.

--
AltBlue.