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
what errors messages are seen in the web server logs?
IE: (linux/appache)
what is in /var/logs/httpd/error_log ??? (name might be off, dont have a
linux box ate my disposal atm)
-Ron
> -Original Message-
> From: Hughes, Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 200
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