in reply to Re^2: How to output the words that you want that came thru an html file?
in thread How to output the words that you want that came thru an html file?
If that is too much, you can start with code like this:
which , I suspect , is close to what you are looking for.my @content = split /^/, $response->content(); my $introduction; for my $line (@content){ next unless ( $introduction ) ||= $line=~/Game Introduction - Marvel +: Avengers Alliance/; my $EndSection = $line=~/<\/section>/; local $_ = $line; # Make a copy, so we do not modify @content.. m|^\s*<[^/>]+>(.+)</| and $_=$1; # Zap tags on both sides, if any s|<[^>]+>||g; # Zap single </onetag> tags print; last if $EndSection ; }
I hope life isn't a big joke, because I don't get it.
-SNL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to output the words that you want that came thru an html file?
by stone_ice (Initiate) on May 04, 2012 at 07:09 UTC | |
by NetWallah (Canon) on May 04, 2012 at 15:34 UTC |