in reply to Re: Pattern-matching hash keys
in thread Pattern-matching hash keys

Thanks for your reply! I'm sorry, I wasn't as clear as I could have been
if ( ! exists ( $status{$client}{'policy'}{$policy} )) { push @{$status{$client}{'policy'}} , $policy ; }
I'm building a Hash of Hashes of Arrays. In this example, %status is a hash, whose keys are also hashes named $client. Each key "$client" is a hash of arrays. In the above example, there is one key (array) named "policy". "policy" should contain a list of, well, policies.

Ultimately, I'm trying to create something like:

%STATUS { Client1, Policy, [ policy1, policy2, policy3 ] ID [ id1, id2, id3 ] }