From 91f4171dc9f9f2134073c0a079bc2c1ac415642d Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 6 Feb 2015 21:16:33 +0200 Subject: [PATCH] Fix gruntmaster-problem edit --- gruntmaster-problem | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gruntmaster-problem b/gruntmaster-problem index 7e979cd..7fe2f76 100755 --- a/gruntmaster-problem +++ b/gruntmaster-problem @@ -112,7 +112,7 @@ sub cmd_edit{ close $fh; my $editor = $ENV{EDITOR} // 'editor'; system $editor, $file; - $db->problem($id)->update({$col => read_file $file}); + $db->problem($id)->update({$col => scalar read_file $file}) or die "$!"; } sub cmd_list{ -- 2.39.2