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

SUMMARY: Prototype mismatch.

Thread Next
From:
romero_a5
Date:
January 30, 2001 06:28
Subject:
SUMMARY: Prototype mismatch.
Message ID:
OFB8258400.81A607D6-ONC12569E4.004EEF40@tsm.es
Original question is forward.



Special thanks to Nick Ing-Simmons <nik@tiuk.ti.com> who has confirmed my suspect:
the check of the prototype was only added in 5.004 version.

So I'm now looking for an option which disables this check, or if it doesn't, I'll have to change the code of the scripts.


Thanks.





++++++++++++++++++++++++++++++++++++++++
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.




Thread Next


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