I'd like to setup my project to always run the scripts through perl's Devel::Cover module. I've tried replacing the perl binary with something like this
#!/bin/sh
exec /usr/local/bin/original-perl -MDevel::Cover $@
with no success. I'd like to avoid modifying the #! for every script on my system (not the end of the world, I'd just like to figure out a more global solution).
Any thoughts on how to turn on Devel::Cover globally?
Edit: Not trying to run this in production, just trying some experiments to figure out how to split up a tightly coupled codebase. Having some automated way to see what source files are needed for a given subsystem (at least as a start) would be helpful