libalgorithm-permute-perl | module to perform permutations with object oriented interface | Mehr ...
Algorithm::Permute makes performing permutation in Perl easy and fast, although perhaps its algorithm is not the fastest on the earth. It supports permutation r of n objects where 0 < r <= n.