Q:

How to edit a key with Win32::TieRegistry?

I was doing a script with Perl and I came up with the following problem: I have to edit the name of a key in the Windows registry.
I'm using the module Win32::TieRegistry and searched at the documentation for any function, but didn't find it. I know that it should be easy, but can't find the way to do that. Any tip?
Thanks!

A:

You can't change the name of a key in a hash, but you can copy the value to a new key and delete the old one.
$hash{new} = delete $hash{old};

This should work the same for a tied hash, assuming the implementation is sane.

