Thank you for the tips. I was looking for something that would do the needed transformations of the webpage to preserve its functionality. It seems I'll have to write that myself (likely using the tools you suggested). I'm a little surprised by fenLisesi's comment that anything more specific than WWW::Mechanize and HTML::TreeBuilder would not be of value for a module. Do you people think that a tool for transforming webpages to work with altered URL would not make for a good and worthy CPAN module?
And about the pornolize thing... I never realized it might be inaproppriate to post it. Sorry if I offended anybody, I found it hilarious and a good example of what I meant.