Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Down to 52

by Lorphos (Novice)
on Sep 18, 2003 at 15:29 UTC ( [id://292430]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Txet Maglning Glof, Ayobndy? (eagle)
in thread Txet Maglning Glof, Ayobndy?

How about this:
perl -pe 's#\B\w+\B#join$,,sort({(-1,1)[rand 2]}split$,,$&)#ge'
That's 52 chars without the "perl -pe"

Replies are listed 'Best First'.
Re^4: Txet Maglning Glof, Ayobndy? (42)
by tye (Sage) on Sep 18, 2003 at 15:58 UTC
    perl -pe "s#\B\w+\B#join$,,so­rt{rand~0}split$,,$&#ge" # 12345678 1 2345678 2 2345678 3 2345678 4 2
                    - tye

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://292430]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2024-03-28 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found