Skip Menu |

This queue is for tickets about the Win32-TieRegistry CPAN distribution.

Report information
The Basics
Id: 22703
Status: open
Priority: 0/
Queue: Win32-TieRegistry

People
Owner: Nobody in particular
Requestors: kristian.hermansen [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Open() returns NULL for keys with no subkeys and only default values
The second print should output the HASH value, right? Is this a bug or an intentional feature of TieRegistry? I recursed my entire registry on Windows XP Home SP2, and there were about 50 keys that produced this behavior. Everything else (thousands?) worked fine. HKLK\SAM\SAM is the first one that causes it in a breadth-first search over the entire registry. Thanks for any input! -- Kristian Hermansen
Subject: open_bug.pl
#!/usr/bin/perl -w use warnings; use strict; BEGIN{ exit(1) unless($^O =~ /win/i); use Win32::TieRegistry (Delimiter=>"/"); } my $HKLM = Win32::TieRegistry->new("LMachine"); # HKEY_LOCAL_MACHINE print "HKLM\\SAM: " . $HKLM->Open("SAM") , "\n"; print "HKLM\\SAM\\SAM: " . $HKLM->Open("SAM/SAM") . "\n";
From: TYEMQ [...] cpan.org
On Mon Oct 30 21:14:27 2006, khermans wrote: Show quoted text
> Is this a bug or an intentional feature of TieRegistry?
I guess "(C) None of the above". Questions are better addressed someplace like http://www.perlmonks.org/. Thanks, Tye
Subject: Re: [rt.cpan.org #22703] Open() returns NULL for keys with no subkeys and only default values
Date: Mon, 30 Oct 2006 22:59:40 -0500
To: bug-Win32-TieRegistry [...] rt.cpan.org
From: "Kristian Hermansen" <kristian.hermansen [...] gmail.com>
The question is why does it return NULL, not why does it fail to print out. Am I correct in thinking that any key should be openable? Are you intending this to happen? Perlmonks seems like a general Perl howto site, and not specific to TieRegistry... On 10/30/06, Tye_McQueen via RT <bug-Win32-TieRegistry@rt.cpan.org> wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=22703 > > > On Mon Oct 30 21:14:27 2006, khermans wrote:
> > Is this a bug or an intentional feature of TieRegistry?
> > I guess "(C) None of the above". Questions are better addressed > someplace like http://www.perlmonks.org/. > > Thanks, > Tye >
-- Kristian Hermansen