in reply to HTML Document Comparison

k, newbie answer ahead. Something like this gave me the proper answer 0||1 for equality using String::Approx. Of course not any validity against proper html code or anything, just plain text match.
use String::Approx 'amatch'; $match = amatch(@txt1, @txt2));
where @txt1 is the original document and @txt2 is the comparing document. And $match will give you 0||1 for the match.

Replies are listed 'Best First'.
RE: Re: HTML Document Comparison
by merlyn (Sage) on Sep 14, 2000 at 01:39 UTC
    Well, better would probably be String::Similarity (which I found out only recently, and right here in the Monestary) which gives a value between 0 and 1. In fact, for the original application, that might be the easiest. {grin}

    -- Randal L. Schwartz, Perl hacker