in reply to Re: Reading directories and parsing standard names
in thread Reading directories and parsing standard names
To generate unique names for files, you can even use the File::Temp module. The function tempfile, given a template, returns the filehandle and filename of the new file that was just opened. This way, you don't need to worry about the one-sec-time or other problems.
Hope this helps,,,use File::Temp qw/tempfile/; ($fh, $filename) = tempfile( $template, DIR => $dir, SUFFIX => '.dat', + CLEANUP => 0);
Aziz,,,
|
|---|