This question shows research effort; it is useful and clear
1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我有一段代码试图分配返回值,但我看到以下错误。感谢有人可以让我知道为什么会出现此错误。
错误:行中不是 HASH 引用
sub getid {
my ($a, $b) = @_;
my $id = 1 << $a + 1 << $b;
return $id;
}
my $tip;
$tip->{'tock'}->[0]->{'brick'} = getid(2, 3); <== This is where I am having issue.