Elliot Holden [EH], on Thursday, February 03, 2005 at 01:24 (-0500) wrote: EH> open(OUTFILE, ">>survey.txt"); EH> print OUTFILE "this is a test!!!\n"; EH> close(OUTFILE); EH> print "<html>Browser test</html>\n";
you should always use open with die. For example: open(OUTFILE, ">>survey.txt") or die "Can't open $!\n"; when you want print more lines to OUTFILE, you should after open use: select OUTFILE; #every print goes to survey.txt print "This will go to outfile\n"; select STDOUT; #print now go to STDOUT (console) close OUTFILE or die "Can't close $!\n"; -- ...m8s, cu l8r, Brano. ["Don't stop now what you're doing, my ugly one" - Tori Amos] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>