And here is the program:perl drunken.pl I think it is funny that people still understand this +sentence I tnihk it is fnnuy taht pploee slitl usnretadnd tihs scnetnee
Who has a better solution? Don't ask for a sense ;)use strict; $| = 1; for (@ARGV) { s/(.?)(.*)(.\W*)$/$2/; print $1; my ( $l, @w ) = ( $3, reverse split // ); print splice @w, rand $#w - 1, 1 while $#w + 1; print "$l "; } print "\n";
Update: Waht deos bteter mnae? Wlle, wt'ahs better for yuo. Mbyae snoenoe lekis to hvae lses cedo, the nxet one lekis to hvae it mroe ousacetfbd.
Update 2: I wrote a small plugin for Irssi which makes you write like a drunken man ;)
Update 3: Changed the link of the plugin into a link which will never be obsolet.
Update 3b: Sorry, changed the link again :( But it should stay now this way :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Drunken words
by linuxer (Curate) on Jan 29, 2009 at 23:52 UTC | |
by andye (Curate) on Jan 30, 2009 at 18:54 UTC | |
Re: Drunken words
by shmem (Chancellor) on Jan 29, 2009 at 23:46 UTC |