[Pdx-pm] hash from array question

Thomas Keller kellert at ohsu.edu
Fri May 25 23:08:57 PDT 2007


Hi Andy,
I can make a hash, but I was thinking it would be faster to (somehow)  
grep the lines  of the file that I needed, and then make a hash of  
just the stuff I need to work with. I guess I'll try this with  
Benchmark.pm and measure the two.

Thanks,


Tom
kellert at ohsu.edu
503-494-2442


On May 25, 2007, at 11:00 PM, Andy Lester wrote:

>
> On May 26, 2007, at 12:55 AM, Thomas Keller wrote:
>
>> This works, but it is really slow. Is there a faster way?
>
> If you're asking "does X contain Y" or "is Y a member of X", then  
> you want to be thinking hashes.
>
> --
> Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance
>
>
>
>
>




More information about the Pdx-pm-list mailing list