You should review these two links:
In reply to Re: How can I delete characters between < and > in Perl? by roboticus in thread How can I delete characters between < and > in Perl? by boom