in reply to Prototype mismatch when using two modules with the same function

First guess: use one of the functions with the fully qualified name:

use Time::localtime; use POSIX qw(locale_h); [...] POSIX::localtime(); localtime() # package Time::localtime
should work, if I'm not completly mistaken.

regards,
tomte


Hlade's Law:

If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.

  • Comment on Re: Prototype mismatch when using two modules with the same function
  • Download Code

Replies are listed 'Best First'.
Re: Re: Prototype mismatch when using two modules with the same function
by dda (Friar) on Jun 21, 2003 at 12:05 UTC
    It works. Thanks!

    Most funny thing is that I used POSIX::localtime with the fully qualified name already. So I just removed 'localtime' from 'use POSIX' statement. :)

    --dda