Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Re: Re: How to get HTML::Parser to return a line of parsed text

by merlyn (Sage)
on Feb 06, 2001 at 21:21 UTC ( #56706=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: How to get HTML::Parser to return a line of parsed text
in thread How to get HTML::Parser to return a line of parsed text

You can use my any place that you can have an lvalue, and it remains an lvalue. I've been using that more and more in my programs, and it's been pretty slick.

-- Randal L. Schwartz, Perl hacker


Comment on Re: Re: Re: Re: Re: How to get HTML::Parser to return a line of parsed text
Re^6: How to get HTML::Parser to return a line of parsed text
by Anonymous Monk on Jan 04, 2008 at 16:39 UTC
    Slick is as slick does.
    use HTML::Parser; use LWP::Simple qw(get); my $html = get("http://anime.com"); my @accum = (); my $parser = HTML::Parser->new( text_h => [\@accum, "text"] ); $parser->parse( $html ); for (@accum) { print $_->[0]; }
    :P

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-08-30 02:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls