in reply to How can I delete Win32 registry keys?
First of all, use Win32::TieRegistry, Win32::Registry is obsolete.
Take a look at its DeleteKey and DeleteValue function.
use Win32::Registry; use Data::Dumper; use strict; use warnings; my $perl; $::HKEY_LOCAL_MACHINE->Open("SOFTWARE\\Perl", $perl); $perl->DeleteValue('BinDir');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |