Thank you for the response Rob and I apologise for my lack of clarity.
Thank you Gunnar the last line in your snippet is what I was looking for.
Rgds
CCJ
__
Not happy with your email address?.
Get the one you really want - million
Rob Dixon wrote:
Gunnar Hjalmarsson wrote:
Rob Dixon wrote:
Clinton JAmes wrote:
How do I stop the parser when I reach "pears".
You are presumably using HTML::TokeParser, and not Toke::Parse, Toke::Parse or
toke paser.
This should do what you want.
while (my $tag = $stream->get_tag('div'))
Gunnar Hjalmarsson wrote:
> Rob Dixon wrote:
>> Clinton JAmes wrote:
>>> How do I stop the parser when I reach "pears".
>> You are presumably using HTML::TokeParser, and not Toke::Parse, Toke::Parse
>> or
>> toke paser.
>>
>> This should do what you want.
>>
>> while (my $tag = $stream->get_tag('d
Rob Dixon wrote:
Clinton JAmes wrote:
How do I stop the parser when I reach "pears".
You are presumably using HTML::TokeParser, and not Toke::Parse, Toke::Parse or
toke paser.
This should do what you want.
while (my $tag = $stream->get_tag('div')) {
next unless my $id = $tag->[1]{id};
la
Clinton JAmes wrote:
> Hi
>
> I'm trying to use Toke::Parse and would appreciate some advice.
>
> My html is something like this
>
>
> advise you to
>
>
>
> apples
>
>
>
> oranges
>
>
> pears
>
>
>
>