in reply to Perl registry reflection – How?

Just do it?

$ echo %PROCESSOR_ARCHITECTURE% x86

Replies are listed 'Best First'.
Re^2: Perl registry reflection – How?
by roteme (Acolyte) on Mar 19, 2012 at 09:14 UTC
    The issue isn't to recognize the PROCESSOR_ARCHITECTURE - that i did in previous function in my full code and set $SERVER_PLATFORM accordingly - the issue/question is how can I control the reading of the Registry key in x64 machine: from: HKEY_LOCAL_MACHINE\SOFTWARE or: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node

      Um, that is what just doesn't make any sense whatsoever. Its like saying I can tie my left shoe, how can I tie my right shoe?

      You have the code right there, change $Registry in the conditional to the 64 value, and you're done.