Just want to clarify something real fast. I believe that perl -c filename will only check for syntax errors, while perl -w will get runtime warnings. That's why you don't get an error with -c, because an undefined sub isn't going to be an error until runtime.
You can mix the parameters as well by doing perl -cw, that will give you both.
Lobster Aliens Are attacking the world!In reply to Re: Undefined subroutine &main error
by cfreak
in thread Undefined subroutine &main error
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |