perl script.pl > outfile # create new or truncate existing outfile perl script.pl >> outfile # create new or append to existing outfile