Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Variable number of foreach loops

by abhay180 (Sexton)
on Nov 27, 2013 at 13:02 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-26 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found