in reply to Re: Extracting HTML content between the h tags
in thread Extracting HTML content between the h tags
I tried the same with your syntax as:my @solution_2 = $content->findvalues( './h2[4]/preceding-sibling::*' +); unless ( @solution_2 ) { @solution_2 = $content->findvalues( '//hr/preceding-sibling::*' ); }
but I get an uninitialized value only.@solution_2 = $content->findvalues( '//hr/preceding-sibling::p[precedi +ng-sibling::h2[3]]' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extracting HTML content between the h tags
by Gangabass (Vicar) on Aug 06, 2012 at 01:01 UTC | |
by vagabonding electron (Curate) on Aug 06, 2012 at 15:31 UTC |