From: Roman Rytov Date: 2002-12-03T22:58:15+09:00 Subject: Conditional block operations Is there a way to filter results of EACH or COLLECT functions? Let's say in file.each do |line| a, b = line.split(pattern) End I wanna work it just over not empty lines or lines fitting some pattern. Anotehr question is about COLLECT; myarray.collect {|x| x + ", "} I wanna execute only over specific emelents (let's say only odd ones or all but last). I know how to do both of them in a couple of lines but RUBY impresses my by its brevity. Will it do it in this case too? Roman Rytov