Keep It Simple, Stupid | |
PerlMonks |
Re: Hash not getting updatedby davidj (Priest) |
on Apr 29, 2005 at 08:30 UTC ( [id://452549]=note: print w/replies, xml ) | Need Help?? |
blazar is right. That is the way you need to do it. The reason %hash had only one element in your original loop is because with each iteration of the loop it was being recreated: %hash = ($temp => $temp) . davidj
In Section
Seekers of Perl Wisdom
|
|