Hope this helps!$doc = ''; open (MYOUT, ">/mypath/output.html") or die $!; $doc .= "<p>Mydata....</p>"; $doc .= "<p>Myotherdata....</p>"; print $doc; # This goes to the web browser print MYOUT $doc; # This goes to a files close (MYOUT);
In reply to Re: saving cgi output as html
by arthas
in thread saving cgi output as html
by martymart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |