http://qs321.pair.com?node_id=1031417


in reply to unique file ID

my $file_name = time() . "_$$";

Time will be unique to the second and the $$ (the PID) will be unique to each executing script.