Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Variable number of foreach loops

by abhay180 (Sexton)
on Nov 27, 2013 at 13:02 UTC ( #1064607=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach $i1 (@ a_1) {
      print $i1;
    }
    
  2. or download this
    foreach $i1 (@ a_1) {
    foreach $i2 (@ a_2) {
      print $i1,$i2;
    }
    }
    
  3. or download this
    foreach $i1 (@ a_1) {
    foreach $i2 (@ a_2) {
    ...
    }
    }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1064607]
Approved by BrowserUk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2022-06-25 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (81 votes). Check out past polls.

    Notices?