> -Original Message-
> From: Bryan R Harris [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 24, 2002 2:58 PM
> To: [EMAIL PROTECTED]
> Subject: RE: when to use hashes...
>
>
>
> > Use a hash when you want to access data by a key.
> >
> >> (
From: "Bryan R Harris" <[EMAIL PROTECTED]>
> So about how many keys do you have to have before you start
> questioning whether you should be using a hash? Is 15,000 keys too
> many?
>
> I've got lots of data files with 15000+ x,y,z values. The x,y values
> are the same, but the z's are differen
> Use a hash when you want to access data by a key.
>
>> (like "if you have over 500,000 items, use a 2-d
>> array instead of a hash")
>
> Perl doesn't have 2-d arrays.
Sure it does, it just takes a little more work to implement them. =)
> If you have 500,000 of something, that gets in to
> t
On Monday, June 24, 2002, at 11:21 , Bryan R Harris wrote:
[..]
> I'm surprised at how often the answer to a question is "You should be
> using
> a hash, not an array."
because of the 'tree search' structure that simplifies the
query for the value - rather than the linear 'walk array
and test
> -Original Message-
> From: Bryan R Harris [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 24, 2002 2:22 PM
> To: [EMAIL PROTECTED]
> Subject: when to use hashes...
>
>
>
> (This is still the beginner's list, right?)
Sure, why not?
>
> I'm surprised at how often the answer to a ques
From: "Bryan R Harris" <[EMAIL PROTECTED]>
> (This is still the beginner's list, right?)
>
> I'm surprised at how often the answer to a question is "You should be
> using a hash, not an array." So my question is, how many keys is too
> many? Is there a rule of thumb? (like "if you have over 50