/** 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)" : "")] } }