#!/usr/bin/env perl # # rawlinsonize - randomly mix the letters of words except the first and last # # $Id$ # There was a wave of publicity on this in 2003, see # # http://www.mrc-cbu.cam.ac.uk/people/matt.davis/Cmabrigde/ # # which states Graham Rawlinson's PhD research (1976, Nottingham Univ.) # as the source. use warnings; use strict; $| = 1; sub usage { print STDERR <) { my $odd = 1; print map { if ( $odd = !$odd ) { &$garbled($_) } else { $_ } } split( /([A-Za-z]{4,})/, $_, -1 ); }