<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><blockquote style="font-family: Georgia; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; border-left-width: 2px; border-left-style: solid; border-left-color: rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;" class=""><div id="html-message" class=""><div class="gmail_extra"><div class="gmail_quote">{<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">'11' => {'AMOUNT' => '20.00','ID' => '11','NAME' => 'Lincoln Park'},<br class="">'12' => {'AMOUNT' => '38.00','ID' => '12','NAME' => 'Bucktown'},<br class="">'13' => {'AMOUNT' => '41.00','ID' => '12','NAME' => 'Lincoln Park'}<br class="">}<br class=""><br class="">Can anyone tell me how I can combine them by 'NAME' so that I would have:<br class=""><br class="">{<br class="">'11' => {'AMOUNT' => '61.00','ID' => '11','NAME' => 'Lincoln Park'},<br class="">'12' => {'AMOUNT' => '38.00','ID' => '12','NAME' => 'Bucktown'},<br class="">}<br class=""></blockquote></div></div></div></blockquote></blockquote></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Nov 23, 2015, at 10:36 AM, <a href="mailto:richard@rushlogistics.com" class="">richard@rushlogistics.com</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="margin: 0px; padding: 0px;">Did not include it because it did not come close but if you must see it here it is:</div><p class="" style="margin: 0px; padding: 0px;"> </p><div class="" style="margin: 0px; padding: 0px;"> %$w_ref = sort { %$w_ref{$a} <=> %$w_ref{$b} } keys %$w_ref;</div></div></blockquote><div class=""><div class=""><div class="" style="margin: 0px; padding: 0px;"><br class=""></div></div></div><div class="" style="margin: 0px; padding: 0px;">What that’s doing is sorting.  There’s no combining going on.  You’re going to need to write something that goes through your hash values and finds the ones that have the same name and add the AMOUNTs together.</div></div></div><div class=""><br class=""></div><br class=""><div apple-content-edited="true" class="">
--<br class="">Andy Lester => <a href="http://www.petdance.com" class="">www.petdance.com</a>

</div>
<br class=""></body></html>