On Tue, 29 Aug 2006, Bryan Harris wrote: > > > I'm getting this warning in a simple script I'm writing: > > ************************************** > main::overlap() called too early to check prototype at > /Users/bh/Library/perl/popdef line 272. > ************************************** > > The subroutine "overlap" is at the bottom of the script, but so are several > others, and I don't get warnings on those. What causes this kind of > warning?
perldoc perldiag %s() called too early to check prototype (W prototype) You've called a function that has a prototype before the parser saw a definition or declaration for it, and Perl could not check that the call conforms to the prototype. You need to either add an early prototype declaration for the subroutine in question, or move the subroutine definition ahead of the call to get proper prototype checking. Alternatively, if you are certain that you're calling the function correctly, you may put an ampersand before the name to avoid the warning. Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>