Philip Mak wrote:
> 
> On Tue, Jan 08, 2002 at 01:10:06PM -0800, Joshua Chamas wrote:
> > > Does anyone know what this message in my error log means?
> > >
> > > [Sun Jan  6 08:48:38 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
> > > Prototype mismatch: sub 
>Apache::ASP::Compiles::_home_shoujoai_global_global_asax3923adc3e76bb3f58ab02b2d54297b4d::time2str
> (;$) vs ($;$$) at /usr/lib/perl5/5.6.1/Exporter.pm line 57.
> > >  at /home/shoujoai/global/global.asa line 5
> 
> I found the problem. I'm using both HTTP::Date and Date::Format. Both
> of these modules export the time2str function by default, but their
> versions of time2str do different things and have different function
> prototypes.
> 
> Kind of messy; I'm guessing it's not possible to include a module and
> tell it not to export a specific function, if it's already exporting
> that function by default...
> 

Try "require HTTP::Date;" to load the module, but without importing its
default functions.  To "use" a module not only loads it, but calls
its import() method as well which is responsible for method defs getting
exported from its namespace when using Exporter.

--Josh
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to