get html tag and class content, perl

dwermprearf

New Member
i need to read the content of the class 1 as below\[code\]<div class=article-body>aaaa</div>\[/code\]here is my perl code\[code\] $lines = <INPUT>;my $root = HTML::TreeBuilder->new( \$lines );my $start = $tree->look_down(_tag => 'div', class => 'article-body');for ($start->right) { last if $_->tag ne 'p'; print $_->as_trimmed_text. "\n\n";\[/code\]}when i run i got this message, odd number of message in hashplease advice me..thanks
 
Back
Top