Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Don't ask to ask, just ask
 
PerlMonks  

Re: 2D arrays

by TJPride (Pilgrim)
on Jul 03, 2012 at 02:43 UTC ( #979568=note: print w/ replies, xml ) Need Help??


in reply to 2D arrays

use strict; use warnings; use Data::Dumper; my (@arr1, @arr2); ### Create array of 1444 elements push @arr1, $_ for 1..38**2; ### Create AoA of 38x38 push @arr2, [ @arr1[($_*38)..($_*38+37)] ] for 0..37; print Dumper(\@arr2);


Comment on Re: 2D arrays
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2013-06-19 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (642 votes), past polls