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?

  • Comment on Re: How to combine the values from hash using 'cname', along with total and balance.

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

    Apologies, for providing wrong output.

      Thank you for correcting your post, but please update your OP to note that a correction has been made. Please see How do I change/delete my post?


      Give a man a fish:  <%-{-{-{-<