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

Re: Multiple Permutation handling

by toolic (Bishop)
on Mar 01, 2013 at 20:32 UTC ( #1021333=note: print w/ replies, xml ) Need Help??


in reply to Multiple Permutation handling

Loops aren't so bad, and sometimes they're efficient, too:

use warnings; use strict; for my $i (1 .. 5) { for my $shirt (qw(T S L H)) { for my $size (qw(S M L XL 2X)) { for my $col (qw(BLU GRN WHT BLK)) { print 'SKU', $i, $shirt, $size, $col, "\n"; } } } }

Show your code.


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://1021333]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2015-07-06 11:00 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 (72 votes), past polls