Archive for category Games
I was bored one day and noticed that the an(6) program wasn’t in Red Hat’s repos. So I wrote a Perl script to talk to the Internet Anagram Server’s HTTP interface:
#!/usr/bin/perl use strict; use warnings; use HTTP::Client; use URI::Escape; my $client = HTTP::Client->new(); my $string = uri_escape(join(" ", @ARGV)); my $document = $client->get("http://www.wordsmith.org/anagram/anagram.cgi?anagram=" . $string . "&t=1000&a=n"); my $start = index($document, "Anagrams for: $string</h3>"); my $end = index($document, '<bottomlinks>'); my $relevant = substr($document, $start, ($end - $start)); $relevant =~ s/<.*>//g; print $relevant;
Here are some anomalies from the Minecraft log files:
Read the rest of this entry »
This time I’ll do them with narrative.