I was opening a html document using the function

my $stream = HTML::TokeParser->new($filename)

|| die "Couldn't read HTML file $filename: $!";

 

 

while ($token=$stream->get_token()){

 

While processing the tokens I am forking child processes.

At some point in the process the variable $stream gets reset such that
get_token function returns the first token in the html document instead
of the next token in the html document that needs to be processed.

}

Is there a way in which this problem can be fixed.

Reply via email to