Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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.


Comment on Re^6: Join lines that match an string
Re^7: Join lines that match an string
by linuxer (Deacon) 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
Node Status?
node history
Node Type: note [id://849332]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2014-08-21 19:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (142 votes), past polls