final_proj.pl add print output to non-test