Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Combinations of multiple arrays

by Anonymous Monk
on Sep 08, 2020 at 21:34 UTC ( #11121499=note: print w/replies, xml ) Need Help??


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 (Pope) on Sep 09, 2020 at 04:02 UTC

    Thanks, fixed.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11121499]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2020-10-24 09:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (242 votes). Check out past polls.

    Notices?