in reply to Re^2: $var{el} += 1 vs $var{el} = $var{el} + 1
in thread $var{el} += 1 vs $var{el} = $var{el} + 1
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};
|
|---|