perlquestion midget2000x <p>I'm trying to figure out some code that will loop thru pre-defined lists and output all combinations (concatenations). Specifically of shirts and size/color/etc options.</p> <p>For example, here are some lists:</p> <p>My code needs to output something like this: SKU1TSBLU<br> SKU1TSGRN<br> SKU1TSWHT<br> SKU1TSBLK<br> SKU1TMBLU<br> SKU1TMGRN<br> SKU1TMWHT<br> SKU1TMBLK<br> ...<br> SKU5H2XWHT<br> SKU5H2XBLK<br> </P> <p>So basically every combination of every option for each sku.</p> <p>I have been doing some looping and can get there in a very ugly, inefficient manner, but I just know there's an easier way.</P> Any help appreciated.