in reply to Image Size in an HTML file

Already done as a column of mine. Who woulda thunk?! {grin}

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Image Size in an HTML file
by ChemBoy (Priest) on Jun 03, 2001 at 06:02 UTC

    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

      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

Re: Re: Image Size in an HTML file
by stuffy (Monk) on Jun 03, 2001 at 03:57 UTC
    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 ;~)