I get my own ugly code

I get my own ugly code

Published on 2009/10/07 23:47:341 min read
sub rw { my $word = "$_[0]"; $word =~ s/(.)/rc($1)/ge; $word;}
sub rc { return ((rand(1)*2+1)%2) ? lc($_[0]): uc($_[0]); }

(i don't care about efficiency or whatnot, i was just creating a simple function for a unit test, it just looks like someone threw up some letters.

Gavin Mogan
Burnaby, BC, Canada

I'm a software developer at the awesome Sauce Labs. I do a bunch of other random open source development. I also play games, both board and video games and love to read. You can usually find me on various services as halkeye.



osqdb has to be one of the worst peices of code I have seen in a while.


"free laptop" facebook scam