#! /opt/local/bin/perl

use CGI qw(:standard);
import CGI font;

print "Content-type: text/html\n\n";

print "<HTML>";

print "<head> <TITLE> $first_name Page</TITLE> </head>\n";

print "<body bgcolor=lightblue text=#000000 link=#006633\n";
print "      alink=#996600 vlink=#663300\n>";

print "<br> <center> <h3> The following people have come to my site:<br><br>\n";

# Set up a table
print "<table>";

# Open a file for reading...

open FILE, "visitors.5.txt";

# While there is still file left

while (<FILE>){

# Print out the line I just read...

($first_name,$last_name)=split/ /,$_;

print "<tr><td><font size=+1 color=red>";

print "First name = $first_name";

print "</font></td><td><font size=+1 color=darkblue>";

print "Last name = $last_name";

# Go to the next row...

print "</font></td></tr>";

    };

# When I am done, close the file up.

close FILE;

# and print out the close of the table

print "</td></tr></table></center>";

print "<br><h3><a href=test2.5.txt>Source</a></h3><br>\n";

print "</HTML>";
