tachekent has asked for the wisdom of the Perl Monks concerning the following question:
I have been writing a program for a linux box to perform a task every minute of the day, involving reading from and writing to disk.
Originally I wrote an perl script that was cronned every minute so that I could make sure it was running on time. However, I have been told that this is very inefficient and that it would be better to load it into memory and run it as a loop.
Does anyone have any ideas of how I can accurately make a looping script that performs at the beginning of every new minute?