|
|
| P is for Practical | |
| PerlMonks |
(jeffa) Re: How to get HTML::Parser to return a line of parsed textby jeffa (Chancellor) |
| on Feb 06, 2001 at 20:04 UTC ( #56678=note: print w/ replies, xml ) | Need Help?? |
|
Personally, I like japhy's answer, but since you are wanting to know how to do it with HTML::Parser, here is yet another way. Unfortunately, this is the OLD way to use HTML::Parser, I haven't learned the new way yet (bad jeffa!). But this should get you going. UPDATE: If you want to store the contents in a variable, just add Then, inside the text subroutine replace the print line with: I would recommend using an array instead, however: UPDATE: UPDATE: just do what merlyn says :) Jeff
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||