From: Marius Gavrilescu Date: Wed, 29 Jan 2014 23:11:10 +0000 (+0200) Subject: Fix gruntmasterd crashes X-Git-Tag: 5999.000_001~25 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=9d3e429ae750dcc65c17c5b47788e345b3060acf;p=gruntmaster-daemon.git Fix gruntmasterd crashes --- diff --git a/lib/Gruntmaster/Daemon/Judge/Absolute.pm b/lib/Gruntmaster/Daemon/Judge/Absolute.pm index 010cf0b..2adea01 100644 --- a/lib/Gruntmaster/Daemon/Judge/Absolute.pm +++ b/lib/Gruntmaster/Daemon/Judge/Absolute.pm @@ -11,8 +11,8 @@ our $VERSION = '0.001'; ################################################## sub judge{ - $_ = pop; - ref $_ ? (result => $_->[0], result_text => $_->[1]) : (result => AC, result_text => 'Accepted') + my $result = pop; + ref $result ? (result => $result->[0], result_text => $result->[1]) : (result => AC, result_text => 'Accepted') } 1;