Please Forward: Ruby Quiz Submission

From: Tristan Allwood <tristan.allwood@gmail.com>
Date: April 24, 2006 3:26:59 AM CDT
To: submission@rubyquiz.com
Subject: Please Forward: Ruby Quiz Submission

Fore!

cat text_munger

ruby -pe 'gsub(/[a-zA-Z]{3,}/){|z|z=z.split
//;[z[0],z[1..-2].sort_by{rand},z[-1]]}' $*

fortune | ./text_munger

Aiovd rtielay at all ctsos.

:slight_smile:

Cheers for a fun quiz,

Tris

···

Begin forwarded message: