in reply to How to combine the values from hash using 'cname', along with total and balance.
How do you expect a balance of 30.76 when summing 10.12, 10.22 and 10.32? Either your input is wrong or your output is wrong or your spec of the task is wrong.
The whole thing seems highly related to How to loop through hash of hashes and add the values based on condition? - have you tried applying what you learned there to this task? What code have you written for this? Where are you stuck?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to combine the values from hash using 'cname', along with total and balance.
by Sami_R (Sexton) on Jan 29, 2020 at 14:52 UTC | |
by AnomalousMonk (Archbishop) on Jan 29, 2020 at 18:29 UTC |