http://www.perlmonks.org?node_id=1001395


in reply to Read registry error

Hi anaconda_wly,

Just for grins, I tried this on a pretty locked-down Windows 7 machine. The error message I received was Can't find the Windows tips: The system could not find the environment option that was entered. I have no idea what that means.

Knowing that the PC I'm using is locked down, I tried changing the root key to HKEY_CURRENT_USER. With that change, your code worked as posted.

I wonder if Win32::TieRegistry is opening the registry key for read/write access?

Replies are listed 'Best First'.
Re^2: Read registry error
by anaconda_wly (Scribe) on Oct 31, 2012 at 05:22 UTC

    Brap, I'm trying. While I tried a use

    Win32::TieRegistry( Access=>KEY_READ, Delimiter => '/' );

    but get an error "Bareword "KEY_READ" not allowed while "strict subs" in use"

Re^2: Read registry error
by sundialsvc4 (Abbot) on Oct 29, 2012 at 20:27 UTC
    That appears to be an option ... but read/write could very well be the default.