That can't be all the code, it only prints to OUT, not OUT and STDOUT.
Look at File::Tee for an easy way to output to two filehandles. Plus put a 'or die' after the open or 'use autodie'. My guess is that the user running the CGI script can't open the output file.
In reply to Re: print result in text/html file-perl cgi
by 1s44c
in thread print result in text/html file-perl cgi
by myfrndjk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |