Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    
    foreach my $tag ($root->findnodes( '//a[./img]'))
      { print "link: ", $tag->as_HTML; }
    
  2. or download this
    foreach my $url ($root->findnodes( '//a/img/@src'))
      { print "link: ", $url->getValue, "\n"; }