For the adding you would do
$worth{$combined} += $value;
instead of
$worth{$combined} = $value;In reply to Re: Create a Hash Dynamically and add the values of same key
by hdb
in thread Create a Hash Dynamically and add the values of same key
by rahulruns
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |