in reply to Re: Re: Existing in hash
in thread Existing in hash
The == operator is best for comparing numbers, or for comparing for identical references (references to the same data object). The example here didn't give much to go on.
If $var1 and $var2 are references, the $var1 eq $var2 would also work: it discovers that "HASH(0x804c88c)" eq "HASH(0x804c88c)", but takes the extra time to stringize both sides.
--
[ e d @ h a l l e y . c c ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Existing in hash
by bart (Canon) on Apr 28, 2003 at 12:54 UTC |