the first problem is that you are using single-quotes in the system function, which is killing any variable interpolation, change to double-quotes and try again:

Code:

system("./try.sh $t $d $m");

although it still may not work, the cgi script may not have permission to run the file or the path to try.sh may not be correct since you are using a relative path, relative to the perl script I think.