in reply to simple replace question

If the string does not have <p> or </p> tags in the middle (or if it does and you want to get rid of those as well), you could do it like this:
$testtext =~ s{</?p>}{}g;
(but when removing these tags from the middle of a string, it might be better to replace them with some sort of whitespace, to avoid creating run-on words)