in reply to Re: simple hash question
in thread simple hash question
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'.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: simple hash question
by wolfi (Scribe) on May 27, 2004 at 05:06 UTC |