Just another Perl shrine | |
PerlMonks |
Re: Weird hash behaviorby kilinrax (Deacon) |
on Oct 11, 2000 at 17:14 UTC ( [id://36216]=note: print w/replies, xml ) | Need Help?? |
Try changing the equals sign to a comma in this line: while (($k,$v) = each (%messages))Then it should work. The each function returns a 2-element list in a list context, but just the key otherwise.
In Section
Seekers of Perl Wisdom
|
|