in reply to Reading subkeys from registry

have you rights to read in the registry? with an administrative account i run safely your snippet (you need to add a newline after scalar(keys %$BaseKey) ):
Win32::TieRegistry=HASH(0x3b7e8c) Number of subkeys found: 77 [long list of unistallable programs]
If you run
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersi +on\Uninstall
in the command prompt you see some output?

you can also find interesting Win32::TieRegistry and Delimiter

L*
UPDATE you need to recur to povershell to see security descriptors of registry keys:
powershell Get-Acl hklm:\SOFTWARE\Microsoft\Windows\CurrentVersion\Un +install

L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Reading subkeys from registry (wfm)
by tye (Sage) on Nov 12, 2015 at 14:24 UTC

    FYI, the posted code works for me whether run as administrator or not.

    - tye        

      you are obviously right (uch the author!!) i suggested administrative problems because of the phrase about windows 64 bit special access keys.

      I'll add more info in brief.
      L*
      There are no rules, there are no thumbs..
      Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re^2: Reading subkeys from registry
by gepebril69 (Scribe) on Nov 12, 2015 at 12:29 UTC

    Hi Discipulus,

    Added a newline.

    When I run it with admin right -> same result. When I use your commandline code (reg query ...... ) I get positive results :)

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\AddressBook HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\AVG HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\Broadcom 802.11 Network Adapter HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\Broadcom 802.11 Wireless LAN Adapter HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\Broadcom Wireless Utility HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\Connection Manager HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\CutePDF Writer Installation HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\DirectDrawEx HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\DXM_Runtime HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\Fontcore HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\Greenshot_is1 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\IE40 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\IE4Data HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\IE5BAKEX HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\IEData HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\Juniper_Setup_Client Activex Control HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\Microsoft Visual Studio 2010 Tools for Office Runtime (x64) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\Microsoft Visual Studio 2010 Tools for Office Runtime (x64) Language + Pack - NLD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\MobileOptionPack HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall +\MPlayer2

    I remember that the access flags where succesful in the past with HKEY_CLASSES_ROOT

    So probably an right issue....

Re^2: Reading subkeys from registry
by gepebril69 (Scribe) on Nov 12, 2015 at 16:42 UTC

    The output of Powershell

    Path Owner + Access ---- ----- + ------ Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_M... NT AUTHORITY\SYSTE +M INGEBOUWD\Gebruikers Allow ReadKey +...

    Tried it on virtual Windows 2012 server (as package) and same result, Number of subkeys found: 0

    Maybe a bug on Strawberry perl 5.20v (32bits) & 5.22v (64 bits)?