3) Create a form that asks a user for his/her name and some comments. Then create two CGI scripts that create a response. The first script displays the information which the user has submitted ("Hello $name. These are your comments: $comments") and asks the user whether he/she really wants to submit the information. The second script is invoked by the first one and displays "Thank you $name. Your comments have been submitted: $comments". Form:First CGI Script: #!/usr/local/bin/perl use CGI qw(:standard); my $name= param("name"); my $comments = param("comments"); print header(); print "
Hello $name. Here are your comments:
6) Hit counter: create a file that contains only
the number "0". Your CGI script must open that file for reading; read
the first line of the file into a scalar variable; increase the number by
one; close the file; open the file again for writing (not appending); write
the number to the file; close the file.
use CGI qw(:standard);
print start_html("Hit Counter");