Web::Scraper::LibXML: warning with LibXML 2.0116
Closed this issue · 4 comments
vividsnow commented
hi
got:
Use of uninitialized value in subroutine entry at ...../perl-5.20.0/lib/site_perl/5.20.0/HTML/TreeBuilder/LibXML/Node.pm line 160.
miyagawa commented
I can't reproduce. Can you provide a script to rerpdocue it?
vividsnow commented
use strict; use warnings;
use Web::Scraper::LibXML; # no warning without "::LibXML"
use Data::Dumper 'Dumper';
my $doc = <<'DOC';
<html>
<body>
<div>
<div>a</div>
<div>b</div>
</div>
</body>
</html>
DOC
print Dumper my $r = (scraper {
process 'body > div' => 'div[]' => scraper { process '. div' => 'name[]' => 'TEXT' }
})->scrape($doc);
zpl commented
Hi.
actually it's not a web::scraper issue.
I posted bug report here tokuhirom/HTML-TreeBuilder-LibXML#10