Hi,

Why this line gives me error?

File.open("test.rb").grep /.*$/ {|line|  print line }





I changed it from the following form:

File.open("test.rb").grep /.*$/ do |line|
  print line
end





-- 
Posted via http://www.ruby-forum.com/.