Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: Problem in mirror method

by ablanke (Monsignor)
on May 26, 2016 at 07:32 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1164168]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found