You can speculate on what might be the fastest, but Benchmark can be one way to validate it. No benchmark is perfect, though, but it can at least give you an idea.@foo{keys %bar} = values %bar; %foo = (%foo, %bar); foreach (keys %bar) { $foo{$_} = $bar{$_} }
In reply to Re: Fast Way to Combine Two Hashes
by tadman
in thread Fast Way to Combine Two Hashes
by arunhorne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |