jamie@lillith ~ $ perl -w perlprog.cgi >> textfile.txt 2> logfile #### jamie@lillith ~ $ perl -w perlprog.cgi > logfile 2>&1