Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Inputing info into Nested Arraysby Cirollo (Friar) |
on Aug 21, 2000 at 20:21 UTC ( [id://28834]=note: print w/replies, xml ) | Need Help?? |
If you want to create a multidimensional array, you do it like this:
You can access elements with 2 array subscripts - $array[0][0] is "foo", $array[0][1] is "bar", $array[1][0] is "abc", etc. Supposing that your file of projects had each project on 1 line, you could do this:
Then to print it back out,
See The Perl Data Structures Cookbook for more info.
In Section
Seekers of Perl Wisdom
|
|