The stupid question is the question not asked | |
PerlMonks |
Re: why does location of function matter?by BrowserUk (Patriarch) |
on Jun 01, 2015 at 22:09 UTC ( [id://1128661]=note: print w/replies, xml ) | Need Help?? |
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:
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? With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
In Section
Seekers of Perl Wisdom
|
|