Cursed Chico has asked for the wisdom of the Perl Monks concerning the following question:
Paper ID - Title (# Reviewers)
untilSelect Reviewer(s):
I did this use strict; use warnings; use English qw(-no_match_vars); use Carp; use HTML::TreeBuilder; my $f = 'index.html'; my $tree = HTML::TreeBuilder->new; $tree->parse_file($f); my @options = $tree->find('OPTION'); foreach (@options){ print $_->as_text,"\n"; } $tree->delete; #clear memory sleep(131); but it only parses all text. I want only specific text. Please help me.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to extract text between two tags?
by Anonymous Monk on May 28, 2015 at 22:42 UTC | |
by Cursed Chico (Initiate) on May 30, 2015 at 16:23 UTC | |
by Anonymous Monk on May 30, 2015 at 17:10 UTC | |
Re: How to extract text between two tags?
by GotToBTru (Prior) on May 28, 2015 at 20:08 UTC | |
Re: How to extract text between two tags?
by FreeBeerReekingMonk (Deacon) on May 28, 2015 at 22:14 UTC | |
by Anonymous Monk on May 28, 2015 at 22:31 UTC | |
by bitingduck (Deacon) on May 28, 2015 at 22:46 UTC | |
by Anonymous Monk on May 28, 2015 at 23:19 UTC |