Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 studying the Monastery: (7)
As of 2015-07-29 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls