It doesn't have to be fixed, but there exists `File::Temp` which is even a core module, don't have to install it, and is the recommended way of allocating tempfiles.