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 Ikegami, Thanks for your quick response.

I've tried using Perl::Critic (http://perlcritic.com/), but it is not throwing up any warning with respect to the re-occurrence of the hash key. Correct me if I'm doing something wrong in using Perl::Critic

  • Comment on Re^2: Throw compilation error(or warning) if duplicate keys are present in hash

Replies are listed 'Best First'.
Re^3: Throw compilation error(or warning) if duplicate keys are present in hash
by ikegami (Patriarch) on Nov 25, 2011 at 03:54 UTC

    I didn't say a rule already existed to check this. Quite the opposite, I assumed there wasn't one and told you you'd have to actually write the rule.