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}{$key}{group_name}{$1} = 1;
                $policy{policy_statement}{$key}{policy_type}{$2} = 1;

the perl error results

Can't use string ("2") as a HASH ref while "strict refs" in use at ./policy.sanitizer line 174.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to