Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Scanning of 64 Bit registry

by cdarke (Prior)
on Jan 10, 2011 at 13:52 UTC ( [id://881459]=note: print w/replies, xml ) Need Help??


in reply to Re: Scanning of 64 Bit registry
in thread Scanning of 64 Bit registry

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";

Replies are listed 'Best First'.
Re^3: Scanning of 64 Bit registry
by Anonymous Monk on Jan 10, 2011 at 14:03 UTC
    Try require Win32::TieRegistry; warn $^E;
Re^3: Scanning of 64 Bit registry
by Anonymous Monk on Jan 10, 2011 at 14:05 UTC
    Or better yet add
    BEGIN { $ENV{DEBUG_TIE_REGISTRY}=99; } ...
Re^3: Scanning of 64 Bit registry
by Anonymous Monk on Jun 16, 2015 at 09:23 UTC
    I had this error and for me it was because of permissions. When I run command prompt as administrator, it works fine.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://881459]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2024-04-23 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found