http://qs321.pair.com?node_id=11121499


in reply to Re: Combinations of multiple arrays
in thread Combinations of multiple arrays

Notice that there is a mistake in above code. It should be NestedLoops with a CAPITAL L.
#/usr/bin/perl use Algorithm::Loops qw( NestedLoops ); my @list = ( [12,13,14,15], [6000,6001,6002,3150,3152], ['314456 C', '314484 D']); my $i = NestedLoops(\@list); while (my @set = $i->()) { print(join(',', @set), "\n"); }

Replies are listed 'Best First'.
Re^3: Combinations of multiple arrays
by ikegami (Patriarch) on Sep 09, 2020 at 04:02 UTC

    Thanks, fixed.