Harlan Carvey wrote:
> I'm using Win32::TieRegistry. Whenever I try to
> access the following key:
>
> HKLM\System\CurrentControlSet\Enum
>
> I get the following error message:
> "The system could not find the environment option that
> was entered"
>
> Permissions say I should be able to read the key.
>
> Input appreciated. Code below.
You should always suppy *complete* code snippets.
> Code:
> my $remote;
> # Registry key to check
> eval {
> $remote =
> $Registry->{"LMachine/System/CurrentControlSet/"}
> or die "Can't open Registry key: $^E\n";
> };
use strict;
use Win32::TieRegistry (Delimiter => '/');
my $remote;
eval {
$remote = $Registry->{"LMachine/System/CurrentControlSet/"}
or die "Can't open Registry key: $^E\n";
};
__END__
--
,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED]
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
Perl-Win32-Admin mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs