in reply to Re: Re: Loop behavior with HTML::TokeParser::Simple
in thread Loop behavior with HTML::TokeParser::Simple
I haven't seen your entire code, but I imagine that your code looks somewhat like below -
If you want to print all the tokens, you should put the print statement inside your loop, otherwise the $token variable is replaced with the next token every time you call the $p->get_token() function.while ( $token=$p->get_token() ) { .... } ... print FILE $token->as_is; close FILE;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Loop behavior with HTML::TokeParser::Simple
by WhiteBird (Hermit) on Dec 20, 2003 at 22:50 UTC |
In Section
Seekers of Perl Wisdom