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 place
You 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'.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: Re: simple hash question
by wolfi (Scribe) on May 27, 2004 at 05:06 UTC

    i meant unquoted strings and not values, while strict was in place.

    As i reread the question, this probably wasn't necessary in this case, as it appears to be more of a mathematical - rather than string - comparison.

    my apologies...