in reply to webpage update watch - used to watch event update

If you use LWP::Simple's mirror method, you could let your local copy maintain the timestamp for you, and then check if there's a 200 or 304 return code, to tell you if something changed or not. Would replace almost all your code with just a few lines.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on Re: webpage update watch - used to watch event

Replies are listed 'Best First'.
Re^2: webpage update watch - used to watch event
by Qiang (Friar) on Jun 11, 2005 at 21:54 UTC
    damn! indeed. merlyn++

    200 OK, 304 Not Modified

    [qiang@dev qiang]$ perl -MLWP::Simple -e '$x=mirror("http://cherryaven +uefarms.org/","tt");print $x' 200 [qiang@dev qiang]$ perl -MLWP::Simple -e '$x=mirror("http://cherryaven +uefarms.org/","tt");print $x' 304