我想从一个空哈希开始,然后将相同类型的哈希的哈希插入到该哈希中。
然而,这会导致...
我想创建一个类似数据库的东西,我可以在其中插入
#!/usr/bin/perl
use strict;
use warnings;
my %h = {};
$h{"1"} => {
a => -1,
b => -1,
c => [
{
d => -1,
e => -1,
},
],
};
然而,这会导致...
Useless use of hash element in void context at ./hash.pl line 8.
Useless use of anonymous hash ({}) in void context at ./hash.pl line 8.
Reference found where even-sized list expected at ./hash.pl line 6.
我想创建一个类似数据库的东西,我可以在其中插入
$h{"1"}
等删除结构。你有什么好的想法吗?