Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Flock to Rename Directory

by zwon (Abbot)
on Sep 17, 2009 at 16:23 UTC ( #795923=note: print w/replies, xml ) Need Help??


in reply to Flock to Rename Directory

If I save each record in a single Flat File, it would need to be opened, read, and rewritten, which I assume is not the fastest technique.
Well, your solution would require to read directory every 20 seconds, and also you should have a lock file if I understand your problem correctly. If you don't want to install and use database server you can use some file based database like DBD::SQLite or BerkeleyDB.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2020-01-25 02:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?