No such thing as a small change | |
PerlMonks |
Re: hash arrayby grizzley (Chaplain) |
on Oct 09, 2012 at 11:06 UTC ( [id://997978]=note: print w/replies, xml ) | Need Help?? |
Please use <code> tags around your code. And regarding your problem: @keys = keys %hash will put all keys from hash in the array. Duplicated entries are there possibly because in your hash you have key the same as value.
In Section
Seekers of Perl Wisdom
|
|