That should be grep { $_ eq $chk } keys %{ $rules->{CI} };, because without the braces, the % deferences the $rules hashref and not the $rules->{CI} hashref.
See References quick reference for more illumination. HTH!
If not P, what? Q maybe?
"Sidney Morgenbesser"
In reply to Re: Re: Re: XML::Simple and arrays
by arturo
in thread XML::Simple and arrays
by J9
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |