in reply to why does location of function matter?
I don't have any prototypes defined and I'm really at a loss as to why it should matter where the function is. Any ideas?
You don't show us the critical piece of information, namely the function definition; but from the error message, I'd guess that your function looks something like this:
sub PostValidate() { #...............^^ # stuff here. ... }
Which defines a function that takes no arguments.
If that is seen before the function is called; it will complain that you passed too many arguments.
If it is not seen until after the function call is compiled, then the prototype is too late to be applied.
Does that fit your code?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: why does location of function matter?
by Anonymous Monk on Jun 01, 2015 at 22:14 UTC | |
Re^2: why does location of function matter?
by smartyollie (Novice) on Jun 01, 2015 at 22:35 UTC | |
by davido (Cardinal) on Jun 01, 2015 at 23:02 UTC | |
by Anonymous Monk on Jun 01, 2015 at 22:47 UTC |