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


in reply to Factorial Matrix

List::MoreUtils also has some nice functions like 'zip','mash', 'pairwise' etc that you can use here.
--Artist