Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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

Replies are listed 'Best First'.
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 about the Monastery: (6)
As of 2016-09-25 14:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (470 votes). Check out past polls.