in reply to Re: Reading directories and parsing standard names
in thread Reading directories and parsing standard names

Hello

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.

use File::Temp qw/tempfile/; ($fh, $filename) = tempfile( $template, DIR => $dir, SUFFIX => '.dat', + CLEANUP => 0);
Hope this helps,,,

Aziz,,,