in reply to Re^3: HTML Parsing /Regex Qstn
in thread HTML Parsing /Regex Qstn

You can traverse content_list of any element. Text is plain, while other tags are references.
... for my $part ($div->content_list) { print $part,"\n" if !ref($part); } ...
If you want all text (including inner tags), you can use as_text method of elements. In this case it would also return title and date, but generally it is useful.

--Roman

Replies are listed 'Best First'.
Re^5: HTML Parsing /Regex Qstn
by sri1230 (Novice) on Jan 21, 2010 at 21:47 UTC
    Thanks!