X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon%2FJudge%2FPoints.pm;h=b153948cbe2aff5e0cbc6507b2a1c7028a426178;hp=85ba209d1ef2a054a61ebc88fea4a2c7f865d8f0;hb=a722431b0f35babda9d7da134824caf76ad75458;hpb=d6a1ae0d77398b2a7ed967e10e8420ac7d9980e5 diff --git a/lib/Gruntmaster/Daemon/Judge/Points.pm b/lib/Gruntmaster/Daemon/Judge/Points.pm index 85ba209..b153948 100644 --- a/lib/Gruntmaster/Daemon/Judge/Points.pm +++ b/lib/Gruntmaster/Daemon/Judge/Points.pm @@ -13,10 +13,10 @@ our $VERSION = '5999.000_002'; ################################################## sub judge{ - no warnings qw/numeric/; - get_logger->trace("Judging results: @_"); - my $points = sum 0, grep { !ref } @_; - $points == 100 ? (result => AC, result_text => 'Accepted') : (result => REJ, result_text => "$points points", points => $points) + no warnings qw/numeric/; + get_logger->trace("Judging results: @_"); + my $points = sum 0, grep { !ref } @_; + $points == 100 ? (result => AC, result_text => 'Accepted') : (result => REJ, result_text => "$points points", points => $points) } 1;