I am trying to replace all occurance of line feed and carriage return (hex value - 0D 0A) with html tag <p>.
Here is the piece of code I am trying
$str = 'asdfj asdflkj
lksdfjlka asdfkj sdfjad
$str =~ s/\x0D\x0A/<p>/g;
But its not working, can anyone help me!.