You should probably read about about the CGI module before attempting to 
create CGI programs... BUT, to answer your question, you would do something 
like this:

#!/usr/bin/perl
use CGI qw/:standard/;
use strict;

my $test = 10000000;

print header;
print start_html;
print "$test\n";
print end_html;

On Thursday 14 February 2002 07:54 am, you wrote:
> Why do I keep getting a premature end of script headers error when I try to
> run this script?  I am going crazy!
>
> #!usr/bin/perl
> #hmres1.pl
> print "Content-type:text/html\n\n";
>
> $test = 1000000;
>
> print "<html><head><title>Test</title></head>\n";
> print "<body>\n";
> print "$test\n";
> print "</body>\n";
> print "</html>\n";
>
> Thanks,
> Andrew

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to