in reply to Re: Image Size in an HTML file
in thread Image Size in an HTML file

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

Replies are listed 'Best First'.
Re: Re: Re: Image Size in an HTML file
by merlyn (Sage) on Jun 03, 2001 at 20:06 UTC
    Well, HTML::LinkExtor is fine if you just want the links, but in a transformation like this, you also need all the non-link text as well. Unless you were just replacing the entire file with only a bunch of images. {grin}

    -- Randal L. Schwartz, Perl hacker