in reply to Scanning of 64 Bit registry

but returning undef when running on 64 bit system.

And the error message said?

Replies are listed 'Best First'.
Re^2: Scanning of 64 Bit registry
by cdarke (Prior) on Jan 10, 2011 at 13:52 UTC
    The handle is invalid

    I get the same problem when trying similar examples to the POD. That is:
    use Win32::TieRegistry( Delimiter=>"#", ArrayValues=>0 ); $pound= $Registry->Delimiter("/"); $diskKey= $Registry->{"LMachine/System"} or die "Can't read LMachine/System key: $^E\n";
    and
    use Win32::TieRegistry; my $tip18= $Registry->{"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\" . 'Windows\\CurrentVersion\\Explorer\\Tips\\\\18'} or d +ie "$^E\n";
      Try require Win32::TieRegistry; warn $^E;
      Or better yet add
      BEGIN { $ENV{DEBUG_TIE_REGISTRY}=99; } ...
      I had this error and for me it was because of permissions. When I run command prompt as administrator, it works fine.
Re^2: Scanning of 64 Bit registry
by Anonymous Monk on Jan 11, 2011 at 12:08 UTC

    Hi,

    my $reg = $Win32::TieRegistry::Registry->{"HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services" };

    i am using above code and instead of returning List of keys it is returning undef