in reply to Re: Summing up duplicate lines
in thread Summing up duplicate lines
I'm afraid that didn't work - your output (once I created a 'sub print_result', that is :) ) looked like this:
which skipped some lines. For comparison, choroba's was[ -1, 5, 1 ], [ 1, 5, 1 ], [ 3, 4, 1 ], [ 5, 1, 1 ], [ -23, -64, 0 ], [ -5, 1, 1 ], [ 30, 0, 1 ], [ -5, 0, 1 ], [ 0, -45, 1 ], [ 0, 10, 1 ]
[-1 5 1] [0 10 1] [1 5 1] [3 4 1] [5 1 1] [30 0 1] [0 -45 1] [-23 -64 0] [-5 0 1] [-5 1 1]
which was correct.
-- I hate storms, but calms undermine my spirits. -- Bernard Moitessier, "The Long Way"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Summing up duplicate lines
by GrandFather (Saint) on May 08, 2024 at 22:23 UTC | |
by oko1 (Deacon) on May 09, 2024 at 21:27 UTC | |
by hippo (Archbishop) on May 09, 2024 at 22:27 UTC |