Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Fun with two-dimensional arrays

by FoxtrotUniform (Prior)
on Aug 09, 2001 at 20:43 UTC ( #103487=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $vscr[$x][$y];
    
  2. or download this
    foreach my $x (@vscr) {
      foreach my $y (@$x) {
        &do_stuff($y);
      }
    }
    
  3. or download this
    foreach my $row (0..21) {
      foreach my $col (@vscr) {
        &do_stuff($col[$row]);
      }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2019-05-21 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (136 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!