Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 chanting in the Monastery: (5)
As of 2022-05-23 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?