Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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: (5)
As of 2014-08-31 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls