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 Marshall,

Thanks for your response.

You are right in saying that the re-definition of a key with a new value is perfectly fine.

But this leads to a anomaly called RD (Re-Definition). The RD means re-defining a variable with a new value without using it's initial value (They say to use your later value as initial one than initializing the variable to something else and changing the variable's value without using it's initial value). The coding guide lines say to identify such cases and rectify the same.

This is one of the reason why I'm thinking of getting a warning or error from standard perl or any of it's additional packages (like use strict,warnings)

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