in reply to How to create new DWORD value in Windows Registry?

You probably want to use Win32::TieRegistry.

/J\

  • Comment on Re: How to create new DWORD value in Windows Registry?

Replies are listed 'Best First'.
Re^2: How to create new DWORD value in Windows Registry?
by puploki (Hermit) on Sep 07, 2005 at 09:18 UTC
    The following code snippett should give you the right idea:
    use strict; use warnings; use use Win32::TieRegistry ( Delimiter => "/", ArrayValues => 1 ); my $rootkey = "LMachine/Software/Microsoft/Windows NT/CurrentVersion/W +inlogon"; $Registry->{"$rootkey//testkey"} = "foobar";
      Yes, got your idea. thank you.
      my $rootkey = "LMachine/Software/Microsoft/Windows NT/CurrentVersion/W +inlogon"; $Registry->{"$rootkey//testkey2"} = [pack("L",0), "REG_DWORD"];
Re^2: How to create new DWORD value in Windows Registry?
by inman (Curate) on Sep 07, 2005 at 11:08 UTC
    You would have thought that they would have a section on Adding Keys? Especially with a code examples that shows adding keys in all of the registry data types.