Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Multiple Permutation handling

by Laurent_R (Abbot)
on Mar 03, 2013 at 23:01 UTC ( #1021537=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $s1 (@set1) {
         foreach my $s2 (@set2) {
    ...
             }
         }
    } 
    
  2. or download this
    my @sku   =  qw/SKU1 SKU2 SKU3/;
    my @tslh  =  qw/t s l h/;
    ...
    my @sizes = qw / S M L XL 2X /;
    
    print map { $col = $_; map { $siz = $_; map {$a1 =$_; map "$_ $a1 $siz
    + $col\n", @sku;} @tslh} @sizes } @colors;
    
  3. or download this
    SKU1 t S BLU
    SKU2 t S BLU
    ...
    SKU1 h 2X BLK
    SKU2 h 2X BLK
    SKU3 h 2X BLK
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021537]
help
Chatterbox?
[shmem]: hmm...
[shmem]: Lady_Aleena: perl -MMP3::Tag -MFile::Find -le 'find(sub{if($File ::Find::name=~/\. mp3$/){$sum+=MP3:: Tag->new($_)-> interpolate("\%S ")} }, "Music"); print "total seconds: $sum"'
[Lady_Aleena]: shmem, sorry I was outside for a moment moving my car out of hubby's way.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2017-04-23 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.