in reply to Converting HTML tags to upper case

Sorry, this is another reply that's not a direct and complete answer.

In fact, it's well OffTopic as far as the Perl element of your question

But I would recommend, strongly against uppercasing html tags.