in reply to Re^3: 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

A policy for this now exists, but you'll need to install Perl::Critic::Pulp.

See http://search.cpan.org/dist/Perl-Critic-Pulp/lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitDuplicateHashKeys.pm

xoxo,
Andy

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