Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Throw compilation error(or warning) if duplicate keys are present in hashby I_love_perl (Novice) |
on Nov 24, 2011 at 09:28 UTC ( [id://939826]=note: print w/replies, xml ) | Need Help?? |
Hi TJPride, Thanks for your response It is a manually generated .pm file by the people who are not very much familiar with perl syntax. Hence I suspect that there might be a good chance of mistyping an existing key. In this case we are not looking for eliminating the duplicated hash keys, rather we are looking for updating .pm file properly with a new key for the duplicated one's. So we need to know if some key is duplicated As I know writing a small validating perl script will do this , but I was thinking if there is any approach available in perl by default or addon.
In Section
Seekers of Perl Wisdom
|
|