Okay, so that begs a question - what is the impact on performance between:
irrelevant :)
Throwing memory at the problem (extra $scalar) is slightly faster than extra (double-1) hash lookups
But you meant to type
$someKey = $resultHash{SomeKey}; $totalsHash{ $someKey } = $$someKey{AltValue};
In reply to Re^3: $var{el} += 1 vs $var{el} = $var{el} + 1 (Benchmark)
by Anonymous Monk
in thread $var{el} += 1 vs $var{el} = $var{el} + 1
by banesong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |