From: Alan Date: 2006-05-20T04:21:08+09:00 Subject: Why this code returns error? 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/.