It would be better to add use `mktemp` and even better to use `mkstemp`.
Maybe you can implement those as static `File::` and `FileName::` methods.