in reply to Problem in mirror method

Here is a demonstration of what the others are talking about

use WWW::Mechanize; my $ua = WWW::Mechanize->new( autocheck => 1 ); $ua->show_progress(1); $ua->mirror( q{http://example.com/} , q{} ); __END__ ** GET http://example.com/ ==> 200 OK Cannot rename '-4056' to '': No such file or directory

the empty string is not a valid filename

Replies are listed 'Best First'.
Re^2: Problem in mirror method
by perlmad (Sexton) on May 26, 2016 at 10:47 UTC

    Yeah it's working fine thanks Anonymous Monk

    but I need exact output if the page is updated then the program should return "modified" otherwise "not modified"

    Any Suggestion...