Re: Limiting Toke::Parser

2008-06-29 Thread Clinton JAmes
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

Re: Limiting Toke::Parser

2008-06-28 Thread Gunnar Hjalmarsson
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'))

Re: Limiting Toke::Parser

2008-06-28 Thread Rob Dixon
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

Re: Limiting Toke::Parser

2008-06-28 Thread Gunnar Hjalmarsson
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

Re: Limiting Toke::Parser

2008-06-28 Thread Rob Dixon
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 > > > >