I've been looking for some nice Perl solutions, I imagine it's pretty much the optimal language for many of these problems.