in reply to Is it possible to generate unique temporary filenames using hostname/process id?

The process id is available with the $$ variable, but you really should use File::Temp.