Hi
I am getting a eorror when I am trying to Run perl/cgi program. I am pasting the code with this mail.
when i am running this program i am getting error
quote"
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Name "V::number1" used only once: possible typo at c:\cg\cal.pl line 8.
Name "V::number2" used only once: possible typo at c:\cg\cal.pl line 8.
Sum Of two numbers are 6
"unquote
plz help me out
quote"
this is the html page
<HTML>
<HEAD>
<TITLE> PERL </TITLE>
</HEAD>
<form action = "http://localhost/manish/cal.pl" method = "get";
<br>
Enter First Number
<input type=text name=number1>
<br>
Enter Second Number
<input type=text name=number2>
<br>
<input type=submit value="calculate sum">
</form>
</BODY>
</HTML>
this is the perl file
#!/usr/bin/perl
use strict;
use warnings;
use CGI;
my $query = new CGI;
$query->import_names('V');
my $sum;
$sum = $V::number1 + $V::number2;
print "Sum Of two numbers are $sum";
"unquote
I am getting a eorror when I am trying to Run perl/cgi program. I am pasting the code with this mail.
when i am running this program i am getting error
quote"
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Name "V::number1" used only once: possible typo at c:\cg\cal.pl line 8.
Name "V::number2" used only once: possible typo at c:\cg\cal.pl line 8.
Sum Of two numbers are 6
"unquote
plz help me out
quote"
this is the html page
<HTML>
<HEAD>
<TITLE> PERL </TITLE>
</HEAD>
<form action = "http://localhost/manish/cal.pl" method = "get";
<br>
Enter First Number
<input type=text name=number1>
<br>
Enter Second Number
<input type=text name=number2>
<br>
<input type=submit value="calculate sum">
</form>
</BODY>
</HTML>
this is the perl file
#!/usr/bin/perl
use strict;
use warnings;
use CGI;
my $query = new CGI;
$query->import_names('V');
my $sum;
$sum = $V::number1 + $V::number2;
print "Sum Of two numbers are $sum";
"unquote