Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How do I handle mid-line carriage returns in a flatfile database?

by extremely (Priest)
on Dec 30, 2000 at 06:14 UTC ( [id://48959]=note: print w/replies, xml ) Need Help??


in reply to How do I handle mid-line carriage returns in a flatfile database?

The best way is to stop using return to end database records. =) Set $/="\033\n"; and write records with that on the end of the record. Using a 2 char line terminator lets you have a nice return at the end for eyeballing the files and use a nasty binary character to make the end-of-line special versus your data.
  • Comment on Re: How do I handle mid-line carriage returns in a flatfile database?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-24 06:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found