Alien-Build-Plugin-Decode-Mojo
view release on metacpan or search on metacpan
lib/Alien/Build/Plugin/Decode/Mojo.pm view on Meta::CPAN
{
my $href = $base_element->attr('href');
$base = URI->new($href) if defined $href;
}
my @list = map {
my $url = URI->new_abs($_, $base);
my $path = $url->path;
$path =~ s{/$}{}; # work around for Perl 5.8.7- gh#8
{
filename => URI::Escape::uri_unescape(File::Basename::basename($path)),
url => URI::Escape::uri_unescape($url->as_string),
}
}
grep !/^\.\.?\/?$/,
map { $_->attr('href') || () }
@{ $dom->find('a')->to_array };
return {
type => 'list',
list => \@list,
};
( run in 0.802 second using v1.01-cache-2.11-cpan-c21f80fb71c )