In message <[EMAIL PROTECTED]>
          "Ed Mills" <[EMAIL PROTECTED]> wrote:

> Particularly useful for tied hashes using GDBM where the key is actually a
> compound key such as 'Tom Smith+Mycity+NY+13404' we could find all NY-ers
> using
>
>   foreach (keys %h) {if (/\+NY\+/) {$h2{$_}=$h{$_}}
>
> but try it on 50,000 keys.. ACK, time for a coffee break.

It may not be helping that a list of the 50000 keys is implicitly
constructed by that syntax. If we get iterator support in perl6 then
that should hopefully make it somewhat more efficient.

Tom

-- 
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu/
...Geordi: "I'm too sexy for my beard."

Reply via email to