Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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.

Replies are listed 'Best First'.
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?
[robby_dobby]: Corion: Nice, you just won't be around to deal with the mess - enjoy your vacation :-)
[robby_dobby]: marto: Sure, will do. Thanks!
[Corion]: marto: No great plans - I'll meet with my sister, my brother and my mother, but that's all :)
[Corion]: ... and also a visit to my godson+family of course :)
Corion orders some gifts online :)
[ambrus]: We're spending Christmas and the week after at my brother's place. First time ever, because the last four years they could came home instead.
[ambrus]: robby_dobby: wait what? Glasgow? isn't that one of the most boring towns ever?

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-12-15 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (431 votes). Check out past polls.

    Notices?