in reply to generating combinations of elements of an arbitrary number of arrays

Set::CrossProduct does exactly what you want.

--
brian d foy <bdfoy@cpan.org>
  • Comment on Re: generating combinations of elements of an arbitrary number of arrays