That should be written as:
sub PostValidate { ... }
As you have it declared, sub PostValidate does declare a prototype. An empty prototype means no args may be passed (assuming Perl sees the subroutine is declared before its first use, as you've discovered).
Dave
In reply to Re^3: why does location of function matter?
by davido
in thread why does location of function matter?
by smartyollie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |