in reply to Re: Bulk Hash Assignment
in thread Bulk Hash Assignment
Of course, this does assume that values and keys will always output in precisely the same order. Not that I have been given any reason to believe that they would do something to the contrary.sub schlep { my ($p,$q,%p2q) = @_; @{$q}{values %p2q} = @{$p}{keys %p2q}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^2: Bulk Hash Assignment
by particle (Vicar) on Apr 17, 2002 at 21:12 UTC | |
by tadman (Prior) on Apr 17, 2002 at 22:20 UTC | |
|
Re: Re^2: Bulk Hash Assignment
by pdcawley (Hermit) on Apr 19, 2002 at 07:31 UTC |