in reply to 1 while unlink 'foo'

Where possible, I use File::Path to create a directory of test files and then call rmtree() at the end of the test.