Of course, I'm not sure where the problem is, since you're not using a prototype in the code you show. Anyway:
Probably the best way: by getting rid of the prototype.
Failing that: predeclare the sub somewhere at the top of the script (that is, anywhere so long as it's above its first use), as in
sub foo($$);
Makeshifts last the longest.
In reply to Re: "Called to early to check prototype"
by Aristotle
in thread "Called to early to check prototype"
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |