in reply to Methodically search an arbitrary space?

Looks like Loop Abstraction via Recursion may be what you're looking for.

Note that you can't use a hash because, by its nature, it's unordered. If you had, however, a list of arrays you wanted to loop through, such as:

my @params = ( [1..10], [-5..5], [0..15], [0,1], [1..10], );
Then you could use the solutions in the above meditation, especially the one talking about Algorithm::Loops.

Replies are listed 'Best First'.
Re^2: Methodically search an arbitrary space?
by GuidoFubini (Acolyte) on May 05, 2006 at 17:09 UTC
    Wow, that looks dead on. There's no reason that I used a hash in my example other than "arbitrary sized collection" makes me think of a hash.

    Thanks Tanktalus!