From: Xan Xann Date: 2006-09-10T02:47:30+09:00 Subject: Re: word substitution in file Paul Lutus wrote: > Paul Lutus wrote: > >> File.open(dest) { |f| f.write(result) } if data != result > > s/File.open(dest)/File.open(dest,"w")/ > > Also "not tested!". That may seem obvious at this point. It does not work!!!: wiki.rb:10: parse error, unexpected kEND -- Posted via http://www.ruby-forum.com/.