in reply to Test Technique: Self-removing test data

If you use Test::Class (which I highly recommend!), you can create 'setup' and 'teardown' methods (which run before and after each test), and 'startup' and 'shutdown' methods (which run before each test class).

You can even push these methods into a base class, and have related test classes inherit from this.