in reply to unique file ID
my $file_name = time() . "_$$"; [download]
Time will be unique to the second and the $$ (the PID) will be unique to each executing script.