I've been touched by the signs of spring, and trying to reduce a 1400-character program into a quine while it's still too cold to enjoy the great outdoors properly. Golf before golf, if you will, two diversions I almost never play. As with any change in seasons, it's time for a little lunchtime haiku.
for (@T) { push @_, $_ if ! $_{$_}++ }
I usually write for clarity, but sometimes a low stroke count is the goal of the game. I also tend to rely on the underscore glob most when I'm being purposely terse. What are some of your favorite perl operators and other coding techniques for reducing your handicap?
--
[ e d @ h a l l e y . c c ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Golf and Golf
by chip (Curate) on Apr 25, 2003 at 17:33 UTC | |
by BrowserUk (Patriarch) on Apr 25, 2003 at 18:18 UTC | |
by halley (Prior) on Apr 25, 2003 at 19:42 UTC | |
|
Re: Golf and Golf
by Aristotle (Chancellor) on Apr 26, 2003 at 03:29 UTC |