|
I am using CGI to generate an html file. I want to do two
things: 1) Output a html file 2) Start Browser and load output html file I am still working on the first step. When I try to print directly
to the opened filehandle it does not work. But it
prints to stdout. my $filepath = “test.html”; my $fh_main; open($fh_main, ">$filepath")
or die "Could not open file - $filepath -
$!"; my $q = new CGI(); print ($fh_main,
$q->header("text/html"), $q->start_html(
-title => "Service Agreement", -bgcolor
=> "#ffffff", -style => "sla.css" ), $q->h2( "Current Time" ), $q->hr, $q->p( "The current time: ", $q->b( $timestamp) ), $q->end_html); Can someone tell me how to write the output to html file and start the
browser and load the output html file. |
_______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
