Or are you looking for a way to do it yourself in Perl?
In reply to Re: Combinatorics problem. by Laurent_R in thread Combinatorics problem. (Updated with more info.) by BrowserUk