I'd recommend using plain txt over ms-word, because it's a lot easer. You don't have to save your results to a file first, because you can print the output directly "to the browser" as it were. Just use the text/plain content type instead of the usual text/html:
#!/usr/bin/perl -wT
# some processing of calculations here
print "Content-type: text/plain\n\n"; # set content type to plain text
print "Result 1 = $result1\n";
print "Result 2 = $result2\n";