use strict; use Test::More tests => 1; use HDML::LinkExtor; my $p = HDML::LinkExtor->new(undef, 'http://test.com/'); $p->parse(join "", ); my @links = map { $_->[2]->as_string } $p->links; is_deeply( \@links, [ 'http://test.com/', 'http://test.com/test.png', 'http://test.com/test.hdml', 'mailto:milano@cpan.org', 'http://test.com/choice1.hdml', 'http://test.com/choice2.hdml', 'http://test.com/choice3.hdml' ], ); __END__
This is a link. TEST This is a e-mail. milano@cpan.org
This is a choice. This is a Input.