in reply to Re: "array" search
in thread "array" search

Well, some of the code, yes, I was thinking of making a Tie::Hash. (I think that is the module, it should be easy to figure out)

Infact the idea of @{$self->{keys}} and @{$self->{values}} was taken from from code in articles on using Tie... right now I was mostly just getting it working first. (Well other than trying to cut down on me writting code over and over again)

As per $key eq $id... I've read through a few documents and it is very confusing about how that operator works. Or maybe I am reading too deep into what eq does and how it opperates.

Replies are listed 'Best First'.
Re^3: "array" search
by ikegami (Patriarch) on Jan 14, 2006 at 09:16 UTC
    eq is just like ==, except eq compares strings, and == compares numbers.