in reply to Re^2: amalgamate similar lines
in thread amalgamate similar lines

Yes - I don't think the OP stated any requirements about the order. A required ordering is easily added without changing the gist of the solution.

And I'm not going to speculate what the OP wants or not.

Perl --((8:>*