Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Removing keys in the registry

by baruch (Beadle)
on Jun 04, 2004 at 04:41 UTC ( [id://360690]=note: print w/replies, xml ) Need Help??


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        

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-25 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found