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 = 1000;
print header;
print start_html;
print "$test\n";
print end_ht
One thing that I noticed is your shebang line.
You have: #!usr/bin/perl
I suspect you want: #!/usr/bin/perl -wT
Rob
Good judgement comes from experience, and experience -
well, that comes from poor judgement.
On Thu, 14 Feb 2002, Andrew Hughes wrote:
> Why do I keep getting a premature end o
es, Andrew
Cc: [EMAIL PROTECTED]
Subject: Re: Very Basic Help
On Feb 14, Hughes, Andrew said:
>Why do I keep getting a premature end of script headers error when I
try to
>run this script? I am going crazy!
First, this is better suited for the beginners-cgi mailing list.
Second,
I sugges
bruary 14, 2002 10:55
> To: [EMAIL PROTECTED]
> Subject: Very Basic Help
>
>
> 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
On Feb 14, Hughes, Andrew said:
>Why do I keep getting a premature end of script headers error when I try to
>run this script? I am going crazy!
First, this is better suited for the beginners-cgi mailing list. Second,
I suggest you check the... err... checklist at
http://www.perl.com/doc/FA
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 = 100;
print "Test\n";
print "\n";
print "$test\n";
print "\n";
print "\n";
Thanks,
Andrew
--
To unsubscribe