Download or view anagramlog.frink in plain text format
/** This is a simple program to see what anagrams people are generating on my
website. */
use HTMLUtils.frink
for line = lines["file:///var/log/httpd/access_log"]
{
if [orig, include] = line =~ %r/"GET \/lookup\/nph-anagram.pl\?orig=([^&"]*)[^"]*include=([^&"]*)/
{
orig =~ %s/\+/ /g
orig = URLDecode[orig]
include =~ %s/\+/ /g
include = URLDecode[include]
println[orig + (include ? " ($include)" : "")]
}
}
Download or view anagramlog.frink in plain text format
This is a program written in the programming language Frink.
For more information, view the Frink
Documentation or see More Sample Frink Programs.
Alan Eliasen was born 20218 days, 0 hours, 13 minutes ago.