in reply to What is the difference between s/ and tr/

tr/// transliterates characters, and s/// substitutes, basically. In your example code, when you use tr/// you're replacing every occurance of the character \n with < in the string, whereas s/// substitutes every occurrence of the substring \n\n with <br/>. See. perlop for more info on tr/// and s///.
HTH

_________
broquaint