加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Perl评论家:逗号用于分隔陈述

发布时间:2020-12-15 21:57:51 所属栏目:大数据 来源:网络整理
导读: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. (
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时检测用于分隔语句的逗号是否有误?

解决方法

我在版本1.105中发现了这个错误,它在版本1.116中消失了.它固定在那里之间的某个地方.

更改日志中未提及此修复程序,但提及了PPI更改.可能是PPI错误.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读