perl job.pl > output.txt #### my $file = "output.txt"; unlink $file;