In which case I can beat:

        -pX s#\B\w+\B#join"",map chop,sort map{rand.$_}$&=~/./g#eg

With:

        -p s#\B\w+\B#join"",values%{{map{rand,$_}$&=~/./g}}#eg

Greg

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 2:11 PM
To: [EMAIL PROTECTED]
Subject: Re: Semcarlbd letrtes sepur! (Scrambled letters super!)


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.

------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.

Reply via email to