in reply to Advice on a CGI script

There aren't any holes that I could see... Of course, the safest (and easiest) way to get the results you want is just to run the weblog through a script that analyzes it, but I don't know if you have permissions on jcwren's server to do that :)