Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: combinations of VARYING multiple arrays

by tod222 (Pilgrim)
on Nov 16, 2010 at 17:43 UTC ( #871787=note: print w/ replies, xml ) Need Help??


in reply to combinations of VARYING multiple arrays

In addition to Algorithm::Loops you should consider Algorithm::Permute, Math::Permute::List, Permute::Named, and other modules that appear in a search for 'Permute' on CPAN.

  • Comment on Re: combinations of VARYING multiple arrays

Replies are listed 'Best First'.
Re^2: combinations of VARYING multiple arrays
by SimonClinch (Deacon) on Nov 17, 2010 at 21:10 UTC
    The problem isnt which module but how to call the module recursively to manage nested dynamic sets. I think the constructor for Algorithm::Loops, say, has to be called in a recursive routine that exhausts the different sets being permuted. But that is going to be very slow so I hesitate to put that as a serious solution. I have to think on! Update: maybe traverse with Parse::RecDescent and have that permute each set encountered.

    One world, one people

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2016-06-29 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (388 votes). Check out past polls.