Now, let's have fun. Copy and paste the following code into your windows notepad. [CAUTION:
You can use any text editor, but you will need to make sure it doesn't add any extra stuff, foreign
to Perl.] If you don't know how to cut and paste to your windows notepad, you can review my web
page tutorial.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Check it out! My first webpage.";
Now, save this as first.pl to your web page directory (or any directory) to be uploaded to your
cgi-bin later. The first line of code is the path to Perl on my server. Some servers use
#!/usr/local/bin/perl as the path to Perl. You can ask your server host for the path to Perl,
or use the trial-error method. The second line is the content header. It tells Perl what type
of content to display. The third line tells Perl something to print to your monitor. Syntax
is important in Perl. Notice the quotation marks and semicolons in lines 2 and 3. Be sure you
copy and paste everything, including quotation marks and semicolons.