Perl rocks.
Submitted by wlm2048 on Mon, 09/22/2008 - 17:12
Sometimes you get to do something pretty neat in perl that hurts your head, but makes you smile when you are done.
# I'm sooo sorry for this:
my $total = join ',', reverse sort split ',', join ',+,', map +( "f_" . $_ ), @types;
I love it when what looks like line noise is functional code.
--
Bill
»
- wlm2048's blog
- Login or register to post comments

