in reply to Converting HTML tags into uppercase using Perl

Please don't post on two separate forums. You will be darting between both and getting more confused about a suitable solution to your problem - particularly if both threads take different approaches. Admittedly there are common ideas in both, but you're best to stick with one and run with that.
Code is untested unless explicitly stated