in reply to Re: Pattern-matching hash keys
in thread Pattern-matching hash keys
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.if ( ! exists ( $status{$client}{'policy'}{$policy} )) { push @{$status{$client}{'policy'}} , $policy ; }
Ultimately, I'm trying to create something like:
%STATUS { Client1, Policy, [ policy1, policy2, policy3 ] ID [ id1, id2, id3 ] }
|
|---|