I am trying this code and get an error when running it.
$cfg->{'validRules'} = "true"
...
if ($cfg->{'validRules'} eq "true") { <== error is pointing to this
}
Error is
Error: Can't use string ("0") as a HASH ref while "strict refs" in use at
I am totally clueless. I tried changing it but still the same. Appreciate if I can get some help.