Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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,

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021331]
[shmem]: well, previous to that << was always treated as the left-shift operator
[Eily]: or the here-doc operator
[Eily]: which is actually how it is parsed in this case
[shmem]: older versions of perl can't guess that "use of <<>> may be implemented someday" :D
Discipulus how much wise my brothers are? ;=)
[karlgoethebier]: thanks ;-
[karlgoethebier]: all for reading the manuals

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-07-21 09:09 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (320 votes). Check out past polls.