Okay, so that begs a question - what is the impact on performance between:
$totalsHash{$resultHash{SomeKey}} = $resultHash{SomeKey}{AltValue};vice
my $resultKey = $resultHash{SomeKey}; $totalsHash{$resultKey} = $resultHash{$resultKey}{AltValue};
This is assuming I am referring to the SomeKey value multiple times. I would assume the second scenario is more efficient.
In reply to Re^2: $var{el} += 1 vs $var{el} = $var{el} + 1
by banesong
in thread $var{el} += 1 vs $var{el} = $var{el} + 1
by banesong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |