Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Converting carriage returns to HTML breaks

by tinita (Parson)
on Apr 16, 2012 at 00:59 UTC ( #965216=note: print w/ replies, xml ) Need Help??


in reply to Converting carriage returns to HTML breaks

General hint: If you're not sure what's in your data, print it.

use Data::Dumper; local $Data::Dumper::Useqq = 1; # will also show you \r, \n and other +things print Dumper $string;
If you actually see what you've got it's much easier to handle it =)
in HTML forms you usually get \r\n.


Comment on Re: Converting carriage returns to HTML breaks
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2015-07-30 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls