Help for this page

Select Code to Download


  1. or download this
    use Mojo::DOM;
    my $dom = Mojo::DOM->new(<<'END_HTML');
    ...
    $dom->find('a[href]')->each(sub {
        print "$_ / ",$_->{href}," / ",$_->all_text,"\n";
    });