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:
But of course, it fails upon execution. Is there a way to catch errors like this without executing the program?#!/usr/bin/perl use strict; use warnings; foo();
---
A fair fight is a sign of poor planning.
Back to
Seekers of Perl Wisdom