in reply to Dereferencing an array of arrays
If you haven't read it yet, check out the Data Structures Cookbook. It's chock full of nice examples of various nested data structures.
When you are learning to work with nested structures, a pretty printer can be very handy. Since Data::Dumper is part of the default install, you've got one on hand and ready to use. Try this out:
use strict; use warnings; use Data::Dumper; my @arrayOfArrays = ( [ qw(one two three four five) ], [ qw(blue green white orange black) ], [ qw(car bike plane ship) ], ); print Dumper \@arrayOfArrays;
TGI says moo
|
|---|