in reply to Re: What data structure is this and how to access?
in thread What data structure is this and how to access?
I'm not a fan of such simplifications. They obscure the true nature of the beast.
Calling it an "array of hashes" suggests that doing this will fail...
push @TestVals, "Monkey";
... because you're pushing something that is not a hash onto a supposed "array of hashes".
@TestVals is simply an array. It just so happens that the only item the original asker pushed onto the array happened to be a reference to a hash. But that doesn't necessarily mean that everything on @TestVals will be a hashref.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What data structure is this and how to access?
by roboticus (Chancellor) on Jan 18, 2012 at 13:10 UTC | |
|
Re^3: What data structure is this and how to access?
by jethro (Monsignor) on Jan 18, 2012 at 15:15 UTC |