in reply to How do I pass a string to HTML::TokeParser::Simple object?

my $html = '<html><head><title>text</title></head><body>something</bod +y></html>'; $p = HTML::TokeParser->new( \$html );
\$scalar is a reference to the scalar. Read perlreftut.
Boris