use strict; use Test::More tests => 2; use HTML::ResolveLink; my $base = "http://www.example.com/base/"; my $resolver = HTML::ResolveLink->new(base => $base); my $html = $resolver->resolve(<<'HTML'); foofoo & bar foobar hey & bar
bar HTML is $html, <<'HTML'; foofoo & bar foobar hey & bar
bar HTML $html = $resolver->resolve(<<'HTML'); foo foo HTML is $html, <<'HTML', ''; foo foo HTML ;