in reply to "Porting" scripts to Win32
I wonder why nobody brought this up yet, but File::Temp is the thing to use for your temporary files and directories.