There is a pm called Math::Combinatorics ( http://search.cpan.org/~allenday/Math-Combinatorics-0.09/lib/Math/Combinatorics.pm )
It is really helpful to get the combinations without repetition. Then you just need to process the results to get the output you need, I mean with the "," and "-". I hope this can help you. 2011/9/14 Brandon McCaig <bamcc...@gmail.com> > On Wed, Sep 14, 2011 at 12:35 PM, Brandon McCaig <bamcc...@gmail.com> > wrote: > > #/usr/bin/perl > > Silly me, I forgot the bang. > > --- a Wed Sep 14 12:38:40 2011 > +++ b Wed Sep 14 12:38:46 2011 > @@ -1,4 +1,4 @@ > -#/usr/bin/perl > +#!/usr/bin/perl > > use strict; > use warnings; > > > -- > Brandon McCaig <http://www.bamccaig.com/> <bamcc...@gmail.com> > V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl. > Castopulence Software <http://www.castopulence.org/> < > bamcc...@castopulence.org> > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >