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


in reply to How can one generate all possible permutations of r elements out of n where r<n?

Several of your previous posts are on this style of topic, you "donot find a simple perl code", don't just search, try to write it yourself. Solve the problem with paper and pen, then convert to perl.