Yes, you can get a timestamp in UNIX time format by calling time(). It'll give you an integer value of seconds since Jan 1, 1970, so you can be fairly sure that you'll get a unique value. So when you call your
open( FILEHANDLE, "filename.txt");
you can first say:
$filename = "prefix-" . time() . ".txt";
open( FILEHANDLE, $filename );
The only problem you're going to have is when you need to compare reports. It's going to be a beast to write a comparison program to read all these files and give you relevant data.
If you never need to do that, then separate files would probably be the ideal solution for you. If you *do* need comparison ability, then a real database is probably the best idea. If so, I'd either install a database server (MySQL is free and can be installed on most any platform. Postgres SQL is considered by many to be superior, and even more free. I *know* it runs on Linux and the BSDs, but I'm not sure what other platforms it's been ported to... good oods on any *NIX)
| [reply] [d/l] [select] |