in reply to Prototype mismatch

Yes. The problem is that both modules are autoexporting the same constants. One way around this is to disable the autoexport like this.

#!/usr/bin/perl use strict; # with or without this use warnings; # with or without this use Win32; use Win32::GUI (); # Prevents autoexport for this module.

You can put the empty quotes on either of the calls to prevent the warnings.

Of course this means that you will then need to explicitly request exporting of everything you need from that module.

You should probably check the sources of the modules to verify that the duplicated constants are indeed the same, but in the past I have found this quite a difficult process.


Cor! Like yer ring! ... HALO dammit! ... 'Ave it yer way! Hal-lo, Mister la-de-da. ... Like yer ring!

Replies are listed 'Best First'.
Re: Re: Prototype mismatch
by Mr. Muskrat (Canon) on Sep 26, 2002 at 19:04 UTC

    Wow. So simple!

    I really should have known that! I thank you for answering so quickly.