"A LeDonne" <aledonne.listmail / gmail.com> writes:

> This solution makes no attempt to deal with non-ascii, AND counts
> underscore as a word character.

... and niheter deos mine.

# Now, taht was a nice, sorht quiz good for a qucik barek... I knew the
# poerblm came up brfeoe, but I wrote my sotouiln berfoe loknoig at
# http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/82166.

STDIN.each { |line| puts line.gsub(/\B\w+\B/) { $&.split('').sort_by{rand} } }

# Eojny.
-- 
Christian Neukirchen  <chneukirchen / gmail.com>  http://chneukirchen.org