From: Adam Gardner Date: 2009-03-25T01:46:20+09:00 Subject: Re: problem with gsub! in file JenC wrote: > Thanks Adam. I tried this: > ruby -p -i.bak -e 'gsub(/foo/,"bar")' myfile.vcproj > > but them I get a whole load of warnings: > -e:1: warning: Can't do inplace edit for stdio > > and the file still doesn't change... any ideas? > > best, > Jen Are you sure you did just 'myfile.vcproj' and not '< myfile.vcproj'? -- Posted via http://www.ruby-forum.com/.