Critic不接受关注代码,严重性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;
使用临时变量编写返回信息真的更好吗,或者在我构建和返回hashref时检测用于分隔语句的逗号是否有误?