Re: Semcarlbd letrtes sepur! (Scrambled letters super!)
[email protected] (Ton Hospel)
| Newsgroups | gmane.comp.lang.perl.fun |
|---|---|
| Organization | lunix confusion services |
| Message-ID | <[email protected]> |
In article <[email protected]>, Etienne Grossmann <[email protected]> writes: > Hi all, > > On Thu, Sep 18, 2003 at 05:54:15PM +0200, Xavier Noria wrote: > [snip] > # > # My current favourite is > # > # -p s!\B\w+\B!join"",sort{rand 2}$&=~/./g!ge > # > [snip] > > This is very nice (I didn't know about \B either); how randomly does > that scramble? I'm sure there's a thread somewhere on that. > Not very. The sort{rand 2} trick has been rejected in golfs before.