[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Prototype mismatch: sub main::strftime
From:       Torsten Foertsch <torsten.foertsch () gmx ! net>
Date:       2008-08-26 8:47:58
Message-ID: 200808261047.58252.torsten.foertsch () gmx ! net
[Download RAW message or body]

On Tue 26 Aug 2008, Darragh Gammell wrote:
> Subroutine main::strftime redefined at
> /usr/share/perl/5.8/Exporter.pm line 66.
>  at /home/secure/public_html/tagtag/send.cgi line 10
> Prototype mismatch: sub main::strftime: none vs ($\@;$) at
> /usr/share/perl/5.8/Exporter.pm line 66.
>  at /home/secure/public_html/tagtag/send.cgi line 10

I think "use Date::Format" (at line 10 in send.cgi) exports its own 
version of strftime. That way it redefines the one exported by POSIX. 
That leads to the "redefined" warning. Further, one of the functions 
has a prototype while the other one hasn't. Hence comes the "prototype 
mismatch".

Torsten

--
Need professional mod_perl support?
Just hire me: torsten.foertsch@gmx.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic