develooper Front page | perl.perl5.porters | Postings from January 2001

Prototype mismatch.

From:
romero_a5
Date:
January 26, 2001 04:46
Subject:
Prototype mismatch.
Message ID:
OF024B5FEC.AE2E7EBE-ONC12569E0.00457144@tsm.es
Hello,

     Is there any known reason for which Perl 5.0.0.3 version doesn't report a prototype mismatch error with this code:

     #PROTOTYPES DECLARATION SECTION

     sub SetErrorLogFile($);
     .
     .
     .

     #FUNCTION IMPLEMENTATION SECTION

     sub SetErrorLogFile {
             my(
                $file_name           # STRING    Name of the log file to use
             ) = @_;

             if (! open($_ERRORLOG_FH_,">>$file_name")) {
                printf(  STDERR
                         "Unable to open the timing file %s, using STDERR\n",
                         $file_name);
          .
          .
          .



     ... but if executed under Perl 5.0.0.4 version it will report a prototype mismatch message??


     As you can see, the header of the function is different.


Please, answer to romero_a5@tsm.es

Thanks in advance.






nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About