Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Reading a text file collapsing line continuations

by repellent (Priest)
on Mar 09, 2009 at 19:06 UTC ( [id://749392]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Reading a text file collapsing line continuations
in thread Reading a text file collapsing line continuations

I usually decouple the code that joins lines from the actual program which parses the lines. Hence, the program makes the assumption that lines are not broken, and thus, is able to concentrate on its sole purpose.

This works out cleaner for me because I find that many programs require that lines be joined in the same way. Rather than duplicating code in many programs, I place the join-lines filter up front. It's also easier if the programs read from STDIN, so filters could be piped along in the *NIX environment.
  • Comment on Re^3: Reading a text file collapsing line continuations

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-23 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found