Toki Wartooth
New member
Here is my program:
#!/usr/bin/perl
use CGI ':standard';
my $number = param('number');
print <<BLOCK_O_TEXT;
Content-type: text/html
<html>
<head>
<title>CSET4250 Programming Assignment 1</title>
</head>
<body>
BLOCK_O_TEXT
print <<FORMPART
<form method="GET">
Number: <input type="text" name ="number">
<input type="submit" value="Submit">
</form>
FORMPART
print $number;
print <<CLOSETAGS
</body>
</html>
CLOSETAGS
All I'm trying to do is get it to post a parameter but it has an error on the print line. The debugging isn't exactly useful since it just says something is wrong near print.
#!/usr/bin/perl
use CGI ':standard';
my $number = param('number');
print <<BLOCK_O_TEXT;
Content-type: text/html
<html>
<head>
<title>CSET4250 Programming Assignment 1</title>
</head>
<body>
BLOCK_O_TEXT
print <<FORMPART
<form method="GET">
Number: <input type="text" name ="number">
<input type="submit" value="Submit">
</form>
FORMPART
print $number;
print <<CLOSETAGS
</body>
</html>
CLOSETAGS
All I'm trying to do is get it to post a parameter but it has an error on the print line. The debugging isn't exactly useful since it just says something is wrong near print.