in reply to Merging hashes (clobber duplicate keys)
Here's a slightly shorter version of your code: @{$a}{keys %b} = values %b; keys and values always return their results in corresponding order.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Merging hashes (clobber duplicate keys)
by dkubb (Deacon) on Feb 07, 2001 at 07:39 UTC | |
|
Re: Re: Merging hashes (clobber duplicate keys)
by baku (Scribe) on Feb 07, 2001 at 01:31 UTC |