Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 如何使用Win32::TieRegistry编辑项?_Windows_Perl_Registry_Key - Fatal编程技术网

Windows 如何使用Win32::TieRegistry编辑项?

Windows 如何使用Win32::TieRegistry编辑项?,windows,perl,registry,key,Windows,Perl,Registry,Key,我用Perl编写了一个脚本,遇到了以下问题:我必须在Windows注册表中编辑一个键的名称 我正在使用该模块并在文档中搜索任何函数,但没有找到它。我知道这应该很容易,但我找不到办法。有小费吗 谢谢 您不能更改散列中某个键的名称,但可以将该值复制到新键并删除旧键 $hash{new} = delete $hash{old}; 假设实现是正常的,这对绑定散列应该同样有效。您不能更改散列中键的名称,但可以将值复制到新键并删除旧键 $hash{new} = delete $hash{old}; 假设

我用Perl编写了一个脚本,遇到了以下问题:我必须在Windows注册表中编辑一个键的名称

我正在使用该模块并在文档中搜索任何函数,但没有找到它。我知道这应该很容易,但我找不到办法。有小费吗


谢谢

您不能更改散列中某个键的名称,但可以将该值复制到新键并删除旧键

$hash{new} = delete $hash{old};

假设实现是正常的,这对绑定散列应该同样有效。

您不能更改散列中键的名称,但可以将值复制到新键并删除旧键

$hash{new} = delete $hash{old};
假设实现是正常的,这对绑定散列应该同样有效。

(1.)使用新密钥重新添加条目,(2.)验证是否成功插入新密钥/条目(3.)
delete
旧密钥。(1.)使用新密钥重新添加条目,(2.)验证是否成功插入新密钥/条目(3.)
delete
旧密钥。