Syntactic Confectionery Delight | |
PerlMonks |
Re: pushing onto array is not working as intended..by kyle (Abbot) |
on Apr 08, 2009 at 19:38 UTC ( [id://756435]=note: print w/replies, xml ) | Need Help?? |
This line:
...should be:
...as you have everywhere else. Update: Actually, that's not going to do what you want either. Change them all to:
With what you have, you'll end up with an array of references to the same hash. You want to construct a new hash every time you push, and the above syntax will do that.
In Section
Seekers of Perl Wisdom
|
|