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:There have to be an empty string somewhere.sub mirror { my($self, $url, $file) = @_; my $tmpfile = "$file-$$"; rename( $tmpfile, $file ) or die "Cannot rename '$tmpfile' to '$fi +le': $!\n";
|
---|
In Section
Seekers of Perl Wisdom