in reply to saving cgi output as html

Well, you can have you script print to a file instead of (or in addition to) the standard output. I.e.:
$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);
Hope this helps!

Michele.