Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: Fun with two-dimensional arrays

by bikeNomad (Priest)
on Aug 09, 2001 at 21:23 UTC ( #103516=note: print w/replies, xml ) Need Help??


in reply to Re(2): Fun with two-dimensional arrays
in thread Fun with two-dimensional arrays

Assuming you have fixed-size subarrays, you can do this:

my $columns = 3; foreach my $x (0 .. $columns - 1) { foreach my $y (0 .. $#array) { print $array->[$y]->[$x] } }
update: went back and re-read question.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2016-08-30 15:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (419 votes). Check out past polls.