From: Ian Macdonald Date: 2002-06-19T08:38:35+09:00 Subject: Re: in-place editing On Wed 19 Jun 2002 at 08:22:09 +0900, nobu.nokada@softhome.net wrote: > Inplace edit works for ARGF. > > ARGV.replace(['Makefile']) > ARGF.each_line do |line| > print line.sub(/-l\$\(RUBY_INSTALL_NAME\) /, "") > end Thank you very much. I didn't find anything in the documentation to suggest that it only works on ARGF, so it would have taken me a very long time to figure that out. Ian -- Ian Macdonald | If we all work together, we can totally ian@caliban.org | disrupt the system. | | |