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