Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Using the contents of

by ikegami (Pope)
on Sep 22, 2008 at 06:29 UTC ( #712950=note: print w/replies, xml ) Need Help??


in reply to Using the contents of

Yes. Quote the docs,

If the argument is a reference to a plain scalar, then this scalar is taken to be the literal document to parse.

my $stream = HTML::TokeParser->new(\$source) || die "Couldn't read HTML file $source";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://712950]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2019-12-08 18:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?