- or download this
$balances{$cust} += $bal * $fx_rates->{$ccy};
- or download this
my @sorted_cust_list =
reverse map {$_->[0]} sort {$a->[1]<=>$b->[1]}
map{[$_,$balances{$_}]}keys %balances;
- or download this
while ( my($cust,$balance) = each %balances ) {
...
}