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 $!";
In reply to Re: Filenames based on timestamp
by robobunny
in thread Filenames based on timestamp
by Marcello
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |