http://www.perlmonks.org?node_id=391783

Sprad has asked for the wisdom of the Perl Monks concerning the following question:

"perl -c" is useful for doing a quick syntax check, and I use it often as a pre-test test. But one common error that it doesn't catch is undefined subroutines. For example, this code gets a thumbs up from perl -c:
#!/usr/bin/perl use strict; use warnings; foo();
But of course, it fails upon execution. Is there a way to catch errors like this without executing the program?

---
A fair fight is a sign of poor planning.