Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by cianoz (Friar)
on Aug 26, 2000 at 16:32 UTC ( #29800=categorized answer: print w/replies, xml ) Need Help??

Q&A > regular expressions > How do I handle mid-line carriage returns in a flatfile database? - Answer contributed by cianoz

Usually i prefer to uri-encode multiline fields so i can preserve LF and CR... you can do this way:
use URI::Escape; my $safe_field = uri_escape($field); ## now you can put $safe_field in the db ## without worry about CR/LF a ## restore it: $field = uri_unescape($safe_field);

  • Comment on Answer: 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
Chatterbox?
[marto]: Corion I've been toying with this as a background task
[marto]: along with the pod for perlmodinstall

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2017-08-21 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (319 votes). Check out past polls.

    Notices?