Re: hash of hashes values and keys

2009-09-04 Thread Jim Gibson
At 1:56 PM -0700 9/4/09, Noah Garrett Wallach wrote: Hi there, I am trying to figure out how to use hash of hashes properly. can values and keys be at the same level? I am running in to troubles. Maybe values and keys cant be at the same level ? Values and keys exist as pairs within a has

Re: hash of hashes values and keys

2009-09-04 Thread Uri Guttman
> "NGW" == Noah Garrett Wallach writes: NGW> I am trying to figure out how to use hash of hashes properly. can NGW> values and keys be at the same level? no. any level can have one key of a given string, that is how hashes are defined. if you need more than one thing, you need to make an

hash of hashes values and keys

2009-09-04 Thread Noah Garrett Wallach
Hi there, I am trying to figure out how to use hash of hashes properly. can values and keys be at the same level? I am running in to troubles. Maybe values and keys cant be at the same level ? $policy{policy_statement}{$key} = 2; $policy{policy_statement}{$