imacat wrote:
In my test script I create a temporarily directory as the home directory and set the HOME environemnt variable to it. After the tests are finished that directory is removed with File::Path::rmtree() and the HOME environment variable is restored.
A very good suggestion -- and one which contributes to the pristine environment you keep for testing, which has helped me uncover subtle bugs in my modules in the past.
jimk