in reply to test files - organising

Take a look at Test::Class. It will make it Easier for you to manage your tests if they are are modules rather than sticking everything into one huge script or dozens of smaller test scripts.