pramodkh has asked for the wisdom of the Perl Monks concerning the following question:
Please tell me if I am on the right track.my $Register = "Path of the Registry"; my ($RegType, $RegValue, $RegKey, $value,$hkey); my %values; $HKEY_LOCAL_MACHINE->Open($Register, $hkey); if (defined $hkey ){ $hkey->GetValues(\%values); foreach my $key (keys(%values)) { $RegType = $values{$key}->[1]; $RegValue = $values{$key}->[2]; $RegKey = $values{$key}->[0]; print "\nREG KEY = $RegKey"; print "\nREG VALUE = $RegValue"; print "\nTYPE = $RegType : "; print "\n\n" } $hkey->Close(); }else { print "\n $hkey NOT DEFINED for $Register..."; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Working with Windows Registry in PERL
by marto (Cardinal) on Jun 11, 2008 at 09:30 UTC | |
|
Re: Working with Windows Registry in PERL
by Anonymous Monk on Jun 11, 2008 at 09:24 UTC | |
by pramodkh (Novice) on Jun 11, 2008 at 11:42 UTC | |
|
Re: Working with Windows Registry in PERL
by andreas1234567 (Vicar) on Jun 11, 2008 at 09:30 UTC | |
by pramodkh (Novice) on Jun 11, 2008 at 12:17 UTC | |
by Anonymous Monk on Jun 11, 2008 at 12:56 UTC | |
by pramodkh (Novice) on Jun 16, 2008 at 12:06 UTC |