Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Multiple Permutation handling

by moritz (Cardinal)
on Mar 01, 2013 at 20:27 UTC ( #1021331=note: print w/ replies, xml ) Need Help??


in reply to Multiple Permutation handling

Algorithm::Loops to the rescue:

use 5.010; use strict; use warnings; use Algorithm::Loops qw/NestedLoops/; my @list = NestedLoops( [ [ qw/SKU1 SKU2 SKU3/ ], [ qw/T S L H / ], [ qw/S M L XL 2X / ], [ qw/BLU GRN WHT BLK / ], ], sub { join '', @_ }, ); say join ' ', @list,


Comment on Re: Multiple Permutation handling
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2015-07-28 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls