in reply to Re: Throw compilation error(or warning) if duplicate keys are present in hash
in thread Throw compilation error(or warning) if duplicate keys are present in hash
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Throw compilation error(or warning) if duplicate keys are present in hash
by rovf (Priest) on Nov 24, 2011 at 10:02 UTC | |
by I_love_perl (Novice) on Nov 24, 2011 at 12:18 UTC | |
|
Re^3: Throw compilation error(or warning) if duplicate keys are present in hash
by TJPride (Pilgrim) on Nov 24, 2011 at 14:06 UTC |