sub swap { my ($i,$j) = @_; @a[$i,$j] = @a[$j,$i]; } [download]
In reply to Re: RE: Permutations and combinations by I0 in thread Permutations and combinations by merlyn