You might also want to look at HTML::LinkExtor, which I don't think existed when merlyn wrote that column, but which is designed specifically around this kind of problem.
Update: merlyn is, of course, right--LinkExtor won't give you the context for reinserting the tags (bad ChemBoy! No coffee!). However, the reason I pointed it out is that HTML::Filter is deprecated--if you're going to write your own, similar program, HTML::TokeParser or HTML::PullParser is a more appropriate solution.
If God had meant us to fly, he would *never* have give us the railroads.
--Michael Flanders
| [reply] |
| [reply] |
I'm beginning to think that Vroom should place a "search merlyn's columns" box next to the "search cpan" box.
that way we can find the answer to our questions easier and quicker. :~)
Stuffy
That's my story, and I'm sticking to it, unless I'm wrong in which case I will probably change it ;~) | [reply] |