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

This solution (and smokemachine's and DungeonKeeper's) outputs the lines in semi-random order.

Replies are listed 'Best First'.
Re^3: amalgamate similar lines
by Perl Mouse (Chaplain) on Jan 09, 2006 at 14:47 UTC
    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:>*