Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://965216]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-06-23 11:15 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (543 votes). Check out past polls.