Hello CrashBlossom,

you need administrative rights to fetch this (be also aware, not this case, of Registry Redirection: search it in my bibliotheca)

perl -MData::Dump -MWin32 -e " print Win32::IsAdminUser()?qq(ADMIN\n):qq(NOT admin\n); use Win32::TieRegistry(Delimiter=>'/'); my $idval = $Registry->'HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System +/CentralProcessor/0'}; dd $idval " NOT admin undef #launched portableshell.bat as administrator: perl -MData::Dump -MWin32 -e " print Win32::IsAdminUser()?qq(ADMIN\n):qq(NOT admin\n); use Win32::TieRegistry(Delimiter=>'/'); my $idval = $Registry->'HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System +/CentralProcessor/0'}; dd $idval " ADMIN bless({ # tied Win32::TieRegistry "/Component Information" => "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", "/Configuration Data" => pack("H*","ffffffffffffffff000000000 +0000000"), "/FeatureSet" => "0x3D1B3FFF", "/Identifier" => "Intel64 Family 6 Model 94 Stepping +3", "/Platform Specific Field 1" => "0x00000002", "/Previous Update Revision" => "\0\0\0\0\xA0\0\0\0", "/ProcessorNameString" => "Intel(R) Core(TM) i5-6400 CPU \@ 2. +70GHz", "/Update Revision" => "\0\0\0\0\xC6\0\0\0", "/Update Status" => "0x00000000", "/VendorIdentifier" => "GenuineIntel", "/~MHz" => "0x00000A98", }, "Win32::TieRegistry")

L*

PS you also have a (not influencing results) double delimiter in /0//Identifier

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.

In reply to Re: Need help with Win32::TieRegistry by Discipulus
in thread Need help with Win32::TieRegistry by CrashBlossom

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.