in reply to Filenames based on timestamp
that way you get unique filenames that have a timestamp in them, they just have an extra number at the end.my $time = time(); my $counter = 0; while(-e "$time_$counter") { $counter++; } open(F, ">$time_$counter") or die "blah blah $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Filenames based on timestamp
by Aristotle (Chancellor) on Jun 27, 2002 at 17:02 UTC | |
by robobunny (Friar) on Jun 27, 2002 at 17:21 UTC | |
by seanpor (Novice) on Jul 23, 2002 at 13:18 UTC |