Register and login to submit your favorite /. comments!

Beautiful Code Interview

Submitted by phil on August 8, 2007 - 10:18pm.

The most beautiful code I've ever seen...
by element-o.p. (939033)

...looked like this:

not exp log srand xor s qq qx xor
s x x length uc ord and print chr
ord for qw q join use sub tied qx
xor eval xor print qq q q xor int
eval lc q m cos and print chr ord
for qw y abs ne open tied hex exp
ref y m xor scalar srand print qq
q q xor int eval lc qq y sqrt cos
and print chr ord for qw x printf
each return local x y or print qq
s s and eval q s undef or oct xor
time xor ref print chr int ord lc
foreach qw y hex alarm chdir kill
exec return y s gt sin sort split

Simply elegant! My younger brother sent it to me; not sure where he got it. It's Perl, by the way.

login or register to post comments

i just have to add...

Submitted by phil on August 8, 2007 - 10:19pm.

this blew my fucking mind. try it out.

[ login or register to post comments ]