I\'m trying to write my first Perl program. If you think that Perl is a bad language for the task at hand tell me what language would solve it better.
The program tests
As for the parsing markup with regular expressions part of your question, DON'T!
http://htmlparsing.icenine.ca explains some of the reasons why you shouldn't do this. Although what you're seemingly attempting to parse seems simple, use a proper parser.
Page linked above no longer exists...
http://www.cwhitener.com/htmlparsing