Perl compare numbers with trailing zero's (after decimal)

前端 未结 0 1358
余生分开走
余生分开走 2020-12-03 02:23

I\'m comparing two numbers in perl:

if ($apples + 0 != $fruits->{apples} + 0) {
    print $apples;
    print $fruits->{apples};
    print "\\nApple         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题