X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon%2FJudge%2FPoints.pm;h=230e56d3dd514fa6db82ff7070afcd3caecd8071;hp=85ba209d1ef2a054a61ebc88fea4a2c7f865d8f0;hb=0005d3ad0aba39600e7dbb70c040c416f34985ac;hpb=d6a1ae0d77398b2a7ed967e10e8420ac7d9980e5 diff --git a/lib/Gruntmaster/Daemon/Judge/Points.pm b/lib/Gruntmaster/Daemon/Judge/Points.pm index 85ba209..230e56d 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; @@ -31,7 +31,7 @@ Gruntmaster::Daemon::Judge::Points - 0 to 100 points IOI-style judge =head1 SYNOPSIS use Gruntmaster::Daemon::Judge::Points; - Gruntmaster::Daemon::Judge::Points->judge($result1, $result2, $result3, ...); + Gruntmaster::Daemon::Judge::Points::judge($result1, $result2, $result3, ...); =head1 DESCRIPTION