http://qs321.pair.com?node_id=1164168


in reply to Re^4: Problem in mirror method
in thread Problem in mirror method

...and it prints 'link updated...' like it should, right?

You call the mirror method from the Module LWP::UserAgent.pm/WWW::Mechanize:

Take a look what happens to the $file parameter:
sub mirror { my($self, $url, $file) = @_; my $tmpfile = "$file-$$"; rename( $tmpfile, $file ) or die "Cannot rename '$tmpfile' to '$fi +le': $!\n";
There have to be an empty string somewhere.