Unlink it in an END block ?
Dave. | [reply] |
Thanks. In hind sight the question was pretty short sighted :).
| [reply] |
I like to use the (nowadays) builtin File::Temp module for that. It allows you to ask for temporary files (and whole directory trees) that get autmatically cleaned up and also allows you to portably have these files in an appropiate temporary area so you don't have to assume too much about the writability of the place where the module source resides and is being tested. | [reply] |
portability tip: some operating systems don't let you delete directories you are chdired
to, so its not a bad idea to chdir File::Spec->updir; once or twice in an END{} block
| MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!" | | I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README). | | ** The third rule of perl club is a statement of fact: pod is sexy. |
| [reply] [d/l] [select] |