in reply to Removing keys in the registry

Hi, Sulfericacid... I ran this, and when MyWay had no sub-key, it was deleted as expected. When I added a sub-key, then it wouldn't delete, and as you said, there was no error message about it.

Using regedit, I checked out the Microsoft example you gave, and found that the tips key doesn't have a sub-key. So - your problem appears to be caused by the existence of a sub-key under MyWay.


בּרוּך

Replies are listed 'Best First'.
Re^2: Removing keys in the registry ("no error")
by tye (Sage) on Jun 04, 2004 at 07:18 UTC

    There's "no error" reported unless you write code to report the error (or manage to produce a Perl syntax error with your code). Examples of such code (as basic as just "or die $^E") are found all over the documentation for Win32::TieRegistry.

    Not every example includes the error checking because it gets rather tiresome and often distracts from the point that the example is trying to illustrate.

    - tye