in reply to What is the best way to add tests to existing code?
Not a perfect match, but Perl Medic: Transforming Legacy Code is an excellent book.
qq