in reply to getting errors using the TieRegistry module

i think this statement is in error~
my $SysEnv= $Reg->connect("$Host", "LMachine/System/CurrentControlSet/ +" . "Control/Session Manager/Environment/") or die "Can't connect to $Host 's registry or can't open Registry ke +y," . " Session Manager/Environment: $^E\n";
and should be more like~
my $SysEnv= $Reg->{"//$Host/LMachine/System/CurrentControlSet/" . "Control/Session Manager/Environment/"} # no connect, use {}, not () or die "Can't connect to $Host 's registry or can't open Registry ke +y," . " Session Manager/Environment: $^E\n";
but i haven't tested it.

~Particle

Replies are listed 'Best First'.
(tye)Re: getting errors using the TieRegistry module
by tye (Sage) on Jul 09, 2001 at 21:46 UTC

    That, or capitalize the first "c" in "connect". I'm partial to your method, but there is also a Connect() method available in the module.

            - tye (but my friends call me "Tye")
      changing it to Connect from connect made it work. Thanks guys for all of your help. You guys rock!!! ~RAY~