Ryan Davis
3/4/2009 7:41:00 PM
On Mar 4, 2009, at 08:22 , Yossef Mendelssohn wrote:
> On Mar 4, 4:12 am, Ryan Davis <ryand-r...@zenspider.com> wrote:
>> The most cost efficient way is by not reinventing the wheel:
>>
>> system "paste", *ARGV
>
> To me, the reasoning behind the question seemed to be what to do if
> the sytem has Ruby installed, but not the 'paste' utility. Or maybe
> it's simply an exercise in handling memory usage, speed, and overall
> efficiency.
>
> Either way, this answer is not nearly as helpful as you seem to think
> it is.
I disagree. The OP emphasized the _most_ cost efficient way. In terms
of both CPU time _and_ developer time efficiency, my method reigns
supreme. I learned this valuable lesson while at Gemstone. They used
unix sort for certain types of sorts (esp for large data) because you
can't beat a 20+ year old tool, so why reinvent the wheel?