From: Junhui Liao Date: 2010-07-30T23:00:21+09:00 Subject: Re: my script just read one line? Dear Jes炭s Gabriel y Gal叩n, It's quite strange. There is such a error message. To this line, every_line.each_slice(2).with_index do |(time,signal), index| . split_time_subtract.rb:5:in `write_line_to_file': undefined method `each_slice' for # (NoMethodError) The version of ruby is 1.9.1. And I checked 'each_slice' worked well like this: irb(main):001:0> [1,2,3].each_slice(2){|s| p s} [1, 2] [3] => nil Any suggestions ? Thanks a lot in advance! Junhui -- Posted via http://www.ruby-forum.com/.