in reply to How do I create a file based on a variable?
So, there are a few problems. You may want to read up on open to see how to open a file handle to a file for reading, writing, or both. You may want to open the file in "<+" mode, if you want to read and write to the same file.
I don't see you writing to the file anywhere ... I expect to see something like this (assuming you have opened the file for writing):
print USF "$timestamp\n";
Personally, I would probably store the last timestamp for each user in a relational database table, and then query the table each time I saw that user, to see if they are within the threshold.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I create a file based on a variable?
by Bennco99 (Acolyte) on Aug 03, 2006 at 14:39 UTC |