Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^6: Join lines that match an string

by ambrus (Abbot)
on Jul 13, 2010 at 17:58 UTC ( #849332=note: print w/replies, xml ) Need Help??

in reply to Re^5: Join lines that match an string
in thread Join lines that match an string

What really isn't clear in the OP is whether you want to keep the lines you don't join in the output or throw those lines away. This isn't even clear from your detailed description, though in your code you throw them away. I assumed the OP wanted to keep those lines and only change the joined lines.

Replies are listed 'Best First'.
Re^7: Join lines that match an string
by linuxer (Curate) on Jul 13, 2010 at 21:45 UTC

    My detailed description could not be clear for that detail.

    I simply tried to summarize those conditions, which got clear enough to me (as I am not the OP).

    From my personal experience with similar exercises I tend to drop/ignore those lines.

    I think my example shows that.

    But I learned that my guess (to drop those lines, which aren't to be joined) was wrong.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://849332]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2018-03-18 01:10 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (228 votes). Check out past polls.