in reply to capture psudo tags

Not a Perl solution, but i use it in conjunction with Perl all the time, is HTML Area. It turns a text box into a WYSIWYG HTML editor. It was written exactly for problems like yours. ;)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)