in reply to Re: Summing up duplicate lines
in thread Summing up duplicate lines

Heh, perhaps that's something else that was under-specified in my question. :) I understand the idea behind it - it's not a complex one - but my brain was just refusing to produce the code to match it. It was just a weird day when I was unable to focus (for Various But Definite Reasons); any programmer who's been around a while has seen this pattern many times.
I certainly appreciate the help you folks provided, though!

-- 
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 LanX (Saint) on May 10, 2024 at 12:53 UTC
    Actually, this collapsing/ folding was harder to implement than I thought. Too many off-by-one edge cases.

    Still looking into simplifying the code.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery