in reply to HTML::TokeParser::Simple

Hi jonnyfolk

It works ok for me. What do you mean by 'not working properly'?

Do you get any output, error messages? Is there any text in slices.html?

You could add some more error checking:

my $p = HTML::TokeParser::Simple->new( \$file ) or die "couldn't parse html: $!";
That may help reveal any snags.

Update
It does run all the text into one line because your not printing any tags. Is that what you mean by 'not working properly'?

Update 2
You've set warningsToBrowser but you don't have use warnings; turned on (add that line after use strict;). As an aside, if any warnings are returned they are in the html. They won't be displayed in the browser any warnings will be in the error log.

Update 3
Corrected where the warnings go.

Replies are listed 'Best First'.
Re^2: HTML::TokeParser::Simple
by jonnyfolk (Vicar) on May 26, 2006 at 16:45 UTC

    Hi wsfp

    ,

    Thanks for your input - this is one occasion where I wish my code wasn't working properly!! I have just got back to it and all is working ok - I think I just wasn't connecting properly to the server (there was no error message or time out...)

    I appreciate your getting back to me - sorry for the red herring.