评论家不接受跟随代码,严重性 4:
return {
'debug' => $debug,
'identifier' => $identifier
};
我收到此错误:
# Perl::Critic found these violations in "filename.pl":
# Comma used to separate statements at line 356, column 3. See pages 68,71 of PBP. (Severity: 4)
但是这个代码被接受,没有任何备注:
my $result = {
'debug' => $debug,
'identifier' => $identifier
};
return $result;
使用临时变量写我的回报真的更好,还是批评者检测到Comma used to separate statements
我只是在构建和返回一个 hashref 的时间是错误的?