Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Unable to delete registry keys using Win32::TieRegistry ('/')

by liverpole (Monsignor)
on Sep 01, 2010 at 03:53 UTC ( #858271=note: print w/replies, xml ) Need Help??


in reply to Re^2: Unable to delete registry keys using Win32::TieRegistry ('/')
in thread Unable to delete registry keys using Win32::TieRegistry

Thanks for your answer.  I was kind of hoping you might comment here, since it appears you wrote the original module, and it's nice to get advice directly from the expert.

I don't think I was missing a trailing '/' in my original code, but now I'm not sure; it's certainly possible.  I'll have to go back and check tomorrow.  

Since I have your ear, (more accurately "eyes"), is there any easy way to delete a whole subkey, which may or may not have subkeys or subvalues?  From what I've read of the documentation there's no way to do so, (and I've already written code that seems to work for this), but it seems like a potentially useful option.

It's a very useful module!  I've got some ideas for things I'd like to add to the Windows context menu, and this seems just the I need to automate it. :-)


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
  • Comment on Re^3: Unable to delete registry keys using Win32::TieRegistry ('/')

Replies are listed 'Best First'.
Re^4: Unable to delete registry keys using Win32::TieRegistry (recursive delete)
by tye (Sage) on Sep 01, 2010 at 04:04 UTC
    [...] is there any easy way to delete a whole subkey, which may or may not have subkeys or subvalues?

    My answer at Re: Removing keys in the registry (code) has not lost what accuracy it started out with so I'll just stop with the link to it.

    - tye        

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://858271]
help
Chatterbox?
[shmem]: sounds good.
[shmem]: but I'm crumbling smaller stones. remember...
[stevieb]: I'm working on it to fatten it up and make it more reliant so I can finalize my Raspberry Pi automated build system for that software :) It's all well and fun, until I try to make it work with Windows lol
[shmem]: "debugging a program is more difficult than to write it in the first place. If you code your program as smart as you are, you are, by definition, too dumb to debug it."
[stevieb]: I literally laughed. That's good :) Perhaps I just need to go climb another mountain and forget about it

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2017-03-28 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (342 votes). Check out past polls.