Take a look at Win32::TieRegistry. This example creates foo, and set its value to bar. This same syntax is also good for modification: Change bar to whatever you want, and run the script again, you should see the value change.
use Win32::TieRegistry; $registry = Win32::TieRegistry->new("CUser"); $registry->SetValue("foo", "bar");
This sets a new value under HKEY_CURRENT_USER/AppEvents:
use Win32::TieRegistry; $registry = Win32::TieRegistry->new("CUser/AppEvents", {Delimiter => " +/"}); $registry->SetValue("foo", "something");
This creates a new key (or a path if you want to call it this way):
use Win32::TieRegistry; $registry = Win32::TieRegistry->new("CUser", {Delimiter => "/"}); $registry->CreateKey("foo");
In reply to Re: Adding Registry Keys & Values
by pg
in thread Adding Registry Keys & Values
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |