Subject: Why this code returns error?
From: Alan <nospam hotmail.com>
Date: Sat, 20 May 2006 04:21:08 +0900
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/.