in reply to Stripping HTML tags

Well, maybe the FAQ knows... see e.g. perldoc -q HTML. Well, it may well be that the answers in the FAQ are not suitable for your needs, but you always check it before posting here, don't you? ;-)