I have a variable $myStory that contains text and line breaks eg:
$myStory = "This is the first line\nthis is the second line\nthis is the thrid\n"
notice the line breaks.
I want print the string char by char, if the char is a "\n" I want to print a "<BR>"
I tried to convert all the \n to a <BR>'s with the following code but doesn't work with more that one charater:
$myStory =~ tr/\n/"<BR>"/;
can anybody help me out?