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}; }
In reply to Re^2: Bulk Hash Assignment
by tadman
in thread Bulk Hash Assignment
by tadman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |