use strict; my $hash = { Foo => 1 }; if( $hash->{Foo}->{EEEEEEEK} cmp "abcdefghijklmnopqrstuvwxyz" ){ } __END__ Can't use string ("1") as a HASH ref while "strict refs" in use at ... +.
about strict: if i'm not mistaken, most values need to be in quotes, while strict is in placeYou are mistaken. If you want to know what strict is for read `perldoc strict'. If you want to know about quoting hash keys, start with `perldoc perldata'.
In reply to Re: Re: simple hash question
by PodMaster
in thread simple hash question
by datannen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |