From the error message it looks like $parser is undef. So it is probably the previous line
which fails. Check if $parser is defined, and if the filename is valid; I don't think that HTML::TokeParser::Simple->new returns an error message, so best chance is that the file name is invalid.my $parser = HTML::TokeParser::Simple->new(...);
Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."
In reply to Re^3: Parsing HTML into various files
by psini
in thread Parsing HTML into various files
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |