Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^6: Join lines that match an string

by ambrus (Abbot)
on Jul 13, 2010 at 17:58 UTC ( [id://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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://849332]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-19 13:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found