in reply to Changing .html to .asp

use HTML::Tokeparser, get all links, get the links attribute (href), look that string up if it contains htm or html or shtml and change that to the appropriate extension

Have a nice day
All decision is left to your taste