Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Arbitrarily Nested Loops

by Limbic~Region (Chancellor)
on Feb 03, 2006 at 15:51 UTC ( [id://527693]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $feet ( qw/black brown sneaker/ ) {
        for my $legs ( qw/shorts dress_pants jeans/ ) {
    ...
            }
        }
    }
    
  2. or download this
    (black, brown, sneakers), (shorts, dress_pants, jeans), (t-shirt, dres
    +s_shirt, sweater)
    
    ...
    0, 2, 0 = black, dress_pants, t-shirt
    ...
    2, 2, 2 = sneakers, jeans, sweater
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://527693]
Approved by idsfa
Front-paged by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-23 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found