NAME HTML::Rebase - rewrite HTML links to be relative to a given URL SYNOPSIS use HTML::Rebase qw(rebase_html rebase_css); my $html = <
Go to Perlmonks.org Go to home page/a> HTML my $local_html = rebase_html( "http://localhost:5000/about.html", $html ); print $local_html; __END__ Go to Perlmonks.org Go to home page/a> rebase_html Rewrites all HTML links to be relative to the given URL. This only rewrites things that look like src= and href= attributes. Unquoted attributes will not be rewritten. This should be fixed. rebase_css Rewrites all CSS links to be relative to the given URL. This only rewrites things that look like url( ... ) . CAVEATS Does not handle