Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Iterating over Blocks of 2-Dim Array

by kvale (Monsignor)
on Apr 01, 2004 at 03:51 UTC ( #341500=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $a (0,1) {
       for my $b (0,1) {
    ...
          }
       }
    }
    
  2. or download this
    for my $row (0..3) {
       for my $col (0..3) {
    ...
          print "  Element ", $row % 2,',', $col % 2,"\n";
       }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://341500]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2015-07-06 12:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (74 votes), past polls