From: "David A. Black" Date: 2005-10-09T02:23:17+09:00 Subject: Re: One-liner removing duplicate lines Hi -- On Sun, 9 Oct 2005, Ryan Leavengood wrote: > On 10/8/05, Mark Hubbart wrote: >> >> As long as we're mostly obfuscated anyway, we might as well make the >> whole thing punctuation: >> >> ruby -e'$><<([*$<]|[])' infile > outfile > > That's awesome. I was never a Perl programmer, but I can see the > appeal of golf. Sure the above is pretty incomprehensible, but the > time it takes to understand it improves your understanding of Ruby as > a whole. I've found it useful to link this into golf discussions: http://www.rubygarden.org/ruby?GolfDisclaimer :-) David -- David A. Black dblack@wobblini.net