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: [unknownSym] Rearrangement [GOLF]: Edit Log



Paul
Enthusiast

Feb 16, 2002, 10:40 AM


Views: 32921
Re: [unknownSym] Rearrangement [GOLF]

I take it you don't know Jason (assuming it was him that wrote it) :)

No-one beats his code.

But how about:


Code
s/(.{4})(.{4})/$2$1/g+s/(.{8})(.{8})(.{8})(.{8})/$4$3$2$1/;



(This post was edited by RedRum on Feb 16, 2002, 10:48 AM)


Edit Log:
Post edited by Paul (Enthusiast) on Feb 16, 2002, 10:43 AM
Post edited by Paul (Enthusiast) on Feb 16, 2002, 10:43 AM
Post edited by Paul (Enthusiast) on Feb 16, 2002, 10:48 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