Thread [HTML::TreeBuilder::XPath] wie komme ich an den HTML-Code?
(3 answers)
Opened by pktm at 2011-06-16 10:41
dann darfst du dir nicht den value liefern lassen, sondern den node.
Code (perl): (dl
)
1 2 my ($chunk) = $tree->findnodes( 'body//div[@class="header"]'); print $chunk->toString; Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wie frage ich & perlintro brian's Leitfaden für jedes Perl-Problem |