use LWP::Simple ; if (mirror("http://www.sn.no/", "foo") == RC_NOT_MODIFIED) { ... }