in reply to Finding all sets of chars

If it's permutations you are after, try Algorithm::Permute. Permutations are also discussed in Perl Cookbook, recipe 4.20. See also character generator.