use strict; use Test::More tests => 4; 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 is $resolver->resolved_count, 3; $html = $resolver->resolve(<<'HTML'); foo foo HTML is $html, <<'HTML', ''; foo foo HTML ; is $resolver->resolved_count, 2;