I recommend the File::Temp module.
In reply to Re: an ever-available file for opening by ambrus in thread an ever-available file for opening by Sixtease