- or download this
# Set up a callback that collect image links
my @imgs = ();
...
return if $tag ne 'a'; # we only look closer at <img ...>
push(@imgs, values %attr);
};
- or download this
return if $tag ne 'img';
push(@imgs, $attr{'src'});
- or download this
return if $tag ne 'a';
push(@imgs, $attr{'href'});
- or download this
@imgs = map { $_ = url($_, $base)->abs; } @imgs;
- or download this
@imgs = map { $_ = url($_, $base)->abs->as_string; } @imgs;