in reply to RFC: Playing with glob

This is basically iterating over the elements in an arbitrary number of arrays and returning all combinations of them, one from each array, correct?

I seem to remember reading something in Higher Order Perl, and even here on PerlMonks (the node is currently eluding me) providing a solution to the iteration part of this. All that is left then is to join($delim, @selected_elements) for each set of selected elements.

Update: Re: All Combinations of three arrays. might be an inspiration.

--MidLifeXis

Replies are listed 'Best First'.
Re^2: RFC: Playing with glob
by stevieb (Canon) on Sep 15, 2015 at 20:26 UTC

    For those who aren't aware, Higher Order Perl was made free by its author Mark Jason Dominus. It's a fantastic book, and a must read for those wanting to learn some of the more advanced concepts in Perl.