To create a scalar reference without actually saving the contents to a variable first, you could try something like the following:
$p = HTML::TokeParser->new( \(get $url) );
It's kind of a hack, and a bit ugly, but the choice is yours.
In reply to Re: How do I pass a string to HTML::TokeParser::Simple object?
by revdiablo
in thread How do I pass a string to HTML::TokeParser::Simple object?
by vegasjoe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |