June 2005
Beginner
480 pages
10h 31m
English
After all the fanfare, warnings, checklists, and runaround, you're ready to type in your first CGI program. It is shown in Listing 21.1.
Type and save this program as hello. If, in the checklist, you are required to use a certain extension for CGI programs—as noted in the “Extension to be used for CGI programs” item—use that extension. Thus, if you're required to name your CGI programs with a .cgi extension, save this script as hello.cgi. If you're required to use .pl, save this script as hello.pl.
You did fill out the checklist, didn't you?
1: #!/usr/bin/perl -w 2: use CGI qw(:standard); 3: use strict; 4: 5: print header; 6: print "<b>Hello, World!</b>"; |
Line 1: This line is the ...
Read now
Unlock full access