>>>>> "P" == Phlip  <phlipcpp / yahoo.com> writes:

P> ts wrote:
>>>>>>> "P" == Phlip  <phlipcpp / yahoo.com> writes:
>> 
P> New question. What, if anything, is wrong with this?
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
P> File.open("test").readlines.slice(5..-1) do |line|
>> 
>> #slice don't take a block as argument :-)

P> Apologies to the newbie, but I think ... each ... of the rest of us can 
P> figure out how to fix that.

 You have just asked what is wrong with something that you've not taken the
 times to test.

 Now if you don't see that #readlines create an array, and #slices create
 another just to iterate with #each, this is another problem.


Guy Decoux