See perlopentut for a correct though still largely useless way to do this. The bit you want is in the "File Locking" section. | [reply] [Watch: Dir/Any] |
And of course the value of the counter is meaningless. The only thing it counts (if at all -- see the race condition/locking issue) is how many times the script ran and who would be interested in that?
CountZero "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
| [reply] [Watch: Dir/Any] |
Ok. I was logged in when I clicked on the link to post this. Oh well. I did make this. | [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] |