use CGI; print "foo\n"; print "bar\n"; #### perl test.pl > test.txt