From: Chad Perrin Date: 2005-12-13T06:36:45+09:00 Subject: Re: new to Ruby - pls help in translating this On Tue, Dec 13, 2005 at 06:13:19AM +0900, Joel VanderWerf wrote: > > (1) easier to modify to use a different iteration method, such as map or > grep. > > (2) easier to modify to use a different kind of enumerable, like an > array or string, rather than a file or a duck-file like ARGF. > > (1) and (2) mean that code written using "ARGF.each do |elem|" can more > easily be abstracted/refactored into library code. Of course, if you are > writing a one-liner... See, I knew I was being stupid about something. Thanks for setting me straight. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] unix virus: If you're using a unixlike OS, please forward this to 20 others and erase your system partition.