So to the point, it works! but... other than the non use of CGI.pm I think it still could be improved a bit.. please try it out on your machine or visit this demo
so you can get the whole picture.
Make sure you use the updated code
below, and not the first version.
Any suggestions would be
my @nums = qw/00 20 40 60 80 A0 C0 FF/;
print "Content-type: text/html\n\n";
print '<html><head><title>Web-Safe Colors</title><head>';
print '<body><table align=center border=0><tr><td>';
print '<table width=100% border=1 cellpadding=5>';
print "<td align=center bgcolor=\"\#$nums[$f]$nums[$g]
print "<font color=\"\#$nums[7-$f]$nums[7-$g]$nums[7-$
print "$nums[$f]$nums[$g]$nums[$h]<\/font><\/td> ";
I plan to rewrite it using CGI as soon as I learn CGI.