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?? |
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.
In Section
Seekers of Perl Wisdom
|
|