in reply to Editing the Windows Registry

Win32::TieRegistry by tye should do what you want.