Read Re: Perl 5's greatest limitation is...?.
I believe that compile-time warnings like the one you are looking for is very hard, if not impossible, to do in Perl.
In reply to Re^3: Possible to catch undefined sub at "compile" time?
by andreas1234567
in thread Possible to catch undefined sub at "compile" time?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |