Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Keeping a local copy of a file up-to-date

by BrowserUk (Pope)
on Sep 04, 2011 at 22:56 UTC ( #924129=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Keeping a local copy of a file up-to-date
in thread Keeping a local copy of a file up-to-date

Because if you look inside that script, ignoring the command line options and help stuff, the whole script consists of two lines:

use LWP::Simple qw( mirror ); $rc = mirror( $url, $file );

'nuff said?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^3: Keeping a local copy of a file up-to-date
Download Code
Re^4: Keeping a local copy of a file up-to-date
by Jim (Curate) on Sep 04, 2011 at 22:59 UTC

    But how is this responsive to Vesselin's question?

      The OP asked (note the added emphasis highlighting the bit that you so carefully omitted from your quote above!):

      Is there a CPAN module or something for that sort of task - or do I have to re-invent the wheel?

      lwp-mirror exactly answers that query including the bit about not having to reinvent the wheel.

      It means he doesn't have to write anything!. He can just use the existing script directly.

      What is there about an exactly appropriate answer that you do not understand?


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2014-09-17 19:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (95 votes), past polls