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
use cpan to get it, or load it manually from cpan.org
Sam