Are there any good (and preferably free) code coverage tools out there for Perl?
Moritz discusses how modules built with Module::Build can use Devel::Cover easily.
For modules using ExtUtils::MakeMaker, an extension module exists to invoke the same functionality. Adding the following code before the call to WriteMakefile():
eval "use ExtUtils::MakeMaker::Coverage";
if( !$@ ) {
print "Adding testcover target\n";
}
... will allow one to run the command 'make testcover' and have Devel::Cover perform its magic.