CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Fun With Perl: Perl Golf: Re: [mhx] I lended money to my 'coin'puter... (GOLF): Edit Log



Paul
Enthusiast

Feb 14, 2002, 9:39 AM


Views: 38336
Re: [mhx] I lended money to my 'coin'puter... (GOLF)


Quote
perl -e'@_=1..42;print$",splice@_,rand@_,1for 1..7'


How about:


Code
@_=1..42;print$_[rand@_-1],for 1..7;



(This post was edited by RedRum on Feb 14, 2002, 9:39 AM)


Edit Log:
Post edited by Paul (Enthusiast) on Feb 14, 2002, 9:39 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives