in reply to Re: hashes
in thread hashes

If the hash does exist you could also do this:

for (@ListOfData) { %hash = (%hash, /(\S+)\s+(.*)/); }
... but I have to wonder how fast that would be...

--
I'd like to be able to assign to an luser

Replies are listed 'Best First'.
Re: Re: Re: hashes
by AidanLee (Chaplain) on May 26, 2001 at 01:23 UTC
    As you say, having to go through all the items in %hash each time you add a key is definitely _not_ what you want in terms of speed. This is an _ok_ technique if you want to merge two arrays, as was I believe was pointed out in this node's discussion. However, this is best as a "once only" kind of deal.