Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

(MeowChow) Re: (GOLF) Randomizing lines

by MeowChow (Vicar)
on Jul 26, 2001 at 23:55 UTC ( #100113=note: print w/ replies, xml ) Need Help??


in reply to (GOLF) Randomizing lines

39 chars:
  
perl -ne'splice@l,rand$.,0,$_}{print@l'
And here's a nicely obfuscated one at 49:
  
perl -ne'@=[~~@=,$=]=($=[$==rand$.],$_)}{print@='

   MeowChow                                   
               s aamecha.s a..a\u$&owag.print


Comment on (MeowChow) Re: (GOLF) Randomizing lines
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2014-09-02 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (25 votes), past polls