![]() |
|
more useful options | |
PerlMonks |
(Ovid - need to dereference) Re: Getting information from an array of hashesby Ovid (Cardinal) |
on Apr 25, 2001 at 20:40 UTC ( #75530=note: print w/replies, xml ) | Need Help?? |
I believe what you want is:
The "Reference found where even-sized list expected" stems from you trying to assign a scalar reference to a hash, but a hash expects a list with an even number of elements. You can reproduce that error from the command line: The following eliminates the error:
Cheers, Join the Perlmonks Setiathome Group or just click on the the link and check out our stats. Update: Fixed error in original reply. I had %{ $diary_data[0] } instead of @{ $diary_data[0] }. Update 2: Just saw AgentM's update. He was actually right. This code: Will force a "Can't coerce array into hash" error.
In Section
Seekers of Perl Wisdom
|
|