![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re: Hash problem: each() failureby DigitalKitty (Parson) |
on Feb 23, 2008 at 18:12 UTC ( #669760=note: print w/replies, xml ) | Need Help?? |
Hi Anonymous Monk.
As Corion mentioned, you used the anonymous hash syntax, i.e., $name_of_hash = { ... }; Assigning a list to a hash variable will result in the key/value pair(s) being created.
Update: Fixed typo by changing %name_of_hash = { ... }; to $name_of_hash = { ... }; after ikegami++ noticed it. Thanks. Hope this helps, ~Katie
In Section
Seekers of Perl Wisdom
|
|