From: Joel VanderWerf Date: 2008-07-10T14:58:53+09:00 Subject: Re: [Q] In place edit mode activation? Laurent Julliard wrote: > Hello, > > Does anybody knows if there is a way to activate the 'in place edit > mode' from within a Ruby script that would have the same effect as using > the -i option on the command line? Use $-i="" : [~/tmp] cat >foo foo [~/tmp] cat dash-i.rb $-i="" [~/tmp] ruby -r dash-i -p -e '$_.upcase!' foo [~/tmp] cat foo FOO HTH -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407