Hello,

I have a non-trivial CGI script that ran fine with an older Perl and 
mod_perl, even with -w ans use strict. Recently I upgraded to Perl-5.6 
and mod_perl-1.24, and I get this new warning in Apache:

[Tue Feb 27 15:52:15 2001] bugCGI.pl: main::validate_token() called too 
early to check prototype at /usr/local/httpd/cgi-bin/bugCGI.pl line 
1454.

The routine in question is not called before declaration. The spot in 
question is a recursive call however.

Sketch of the code:

# validate current token  @@@line 1339
sub validate_token($)
{
    my $q = shift;
...
    } else {    # invalid token
        $q->delete($tokenname);
        validate_token($q);     # get a new token  @@@trouble line
    }
}


Am I right that this is not a programming error on my side?

Regards,
Ulrich

Reply via email to