in reply to Iterating Blessed Array of Array
Actually it's a simple, unblessed array that contains blessed hash references. You can iterate over that array just like you'd do with any other array:
for my $item (@output) { print $item->{ID}, ' ', $item->{species}, "\n"; }
But usually it's bad practice to access the hash items of an object - most of the time the object provides accessor methods that you should use instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Iterating Blessed Array of Array
by oeuftete (Monk) on Dec 06, 2008 at 16:33 UTC |