Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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

by Jim (Curate)
on Sep 04, 2011 at 18:36 UTC ( #924109=note: print w/replies, xml ) Need Help??

in reply to Keeping a local copy of a file up-to-date

Consider using the simple, procedural module LWP::Simple and its mirror() function. It will allow you to download a replacement copy of the flat file database table (the ASCII text file) only when it has changed since the last time your Perl script downloaded it.

  • Comment on Re: Keeping a local copy of a file up-to-date

Replies are listed 'Best First'.
Re^2: Keeping a local copy of a file up-to-date
by bontchev (Sexton) on Sep 04, 2011 at 19:44 UTC
    This seems to do the job, thanks!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924109]
[erix]: lazyness-driven inventio :)
[erix]: "the dog ate my homework"
[Eily]: looks more like "all my plates are broken and I don't understand why. Also I can't retrieve the broken parts because the elephant in the room is on the way"
[ambrus]: Eily: also webpages aren't displayed on my monitor no matter what I click with the mouse, and there's a blackout right now, could that be a problem?
[robby_dobby]: ambrus: Yes
[hippo]: erix++: "the browser ate my code"
[robby_dobby]: Eily: Now, people are trying to be inventive with crowdsourcing their work, eh? Sure, call on the admins to k-line these sockpuppet accounts!
[robby_dobby]: hippo: I like how you equated your browser to a dog....

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2017-04-25 13:09 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (453 votes). Check out past polls.