http://qs321.pair.com?node_id=663048


in reply to finding all combinations

ALgorithm::Combinatorics has everything you might ever combine.