[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Some suggestions?



On Wed, May 19, 1999 at 07:42:59AM -0400, Allan Greenier wrote:
> I'm concerned that I could search 2000 (4x500) items before I get to one
> I want. After I find that one, I will need to extract $itemarray[3]
> everytime.

Use a hash, or a sorted list and a binary search.

Ronald

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org