From 9d3e429ae750dcc65c17c5b47788e345b3060acf Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Thu, 30 Jan 2014 01:11:10 +0200 Subject: [PATCH] Fix gruntmasterd crashes --- lib/Gruntmaster/Daemon/Judge/Absolute.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2