Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^5: Problem in mirror method

by ablanke (Vicar)
on May 26, 2016 at 07:32 UTC ( #1164168=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1164168]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2020-05-27 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (153 votes). Check out past polls.

    Notices?