ActiveState Community

Win32::TieRegistry fails during require

Posted by shepster on 2009-09-10 08:03
OS: Windows

I have some code I am trying to run on Windows XP. I have ActivePerl 1.10.1 installed with Komodo IDE 5.2 running. I'm trying to conditionally include Win32::TieRegistry when running under Windows. If I use require Win32::TieRegistry it dies but works with use Win32::TieRegistry.

First if I do a:

BEGIN { my $Registry; }
use strict;
use Win32::TieRegistry;

Then all is well. If instead I conditionally try to include it in an eval, like so:

eval { require Win32::TieRegistry; };
if ($@) { .... }

It dies ($SIG{'__DIE__'} handler gets called) with the following data:

Can't locate SetDualVar.pm in @INC (@INC contains: C:\ActiveState\Komodo\IDE\5\lib\support\dbgp\perllib C:/ActiveState/Perl/5.10/site/lib C:/ActiveState/Perl/5.10/lib .) at C:/ActiveState/Perl/5.10/lib/Win32/TieRegistry.pm line 39.

I can't find SetDualVar.pm anywhere.

Can someone offer any help?

Thanks,
--Dave

sdetweil | Thu, 2009-09-24 09:53

use cpan to get it, or load it manually from cpan.org

Sam