in reply to Reading directories and parsing standard names
As long as you don't try to create more than one file per second, this will produce a new filename every time.$name = 'foo_' . time() . '.bar'; or my($sec, $min, $hr, $day, $mon, $year) = (gmtime)[0..5]; $name = sprintf("foo_%04d%02d%02d.%02d%02d%02d.bar", $year + 1900, $mon + 1, $day, $hr, $min, $sec);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reading directories and parsing standard names
by abstracts (Hermit) on Aug 12, 2001 at 14:06 UTC |