http://www.perlmonks.org?node_id=975394


in reply to Combinations of array?

This was recently asked at All possible number combinations in perl.