Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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.


Comment on Re: Re: Re: Fun with two-dimensional arrays
Download Code

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 musing on the Monastery: (17)
As of 2015-07-31 14:08 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 (278 votes), past polls