Fix running java/perl/python programs with arguments
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 27 Feb 2014 10:20:41 +0000 (12:20 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 27 Feb 2014 10:20:41 +0000 (12:20 +0200)
lib/Gruntmaster/Daemon/Format.pm

index 5b5081e..b80dd7d 100644 (file)
@@ -26,9 +26,9 @@ sub command_and_args{
        given($format) {
                "./$basename" when [qw/C CPP PASCAL/];
                "./$basename.exe" when 'MONO';
-               "java $basename" when 'JAVA';
-               "perl $basename" when 'PERL';
-               "python $basename" when 'PYTHON';
+               java => $basename when 'JAVA';
+               perl => $basename when 'PERL';
+               python => $basename when 'PYTHON';
                default { die "Don't know how to execute format $format" }
        }
 }
This page took 0.011582 seconds and 4 git commands to generate.