Toki Wartooth
New member
Here's 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
I'm just trying for it to print the number variable which is set from a parameter. There is an error on the print $number; line.
#!/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
I'm just trying for it to print the number variable which is set from a parameter. There is an error on the print $number; line.