William James wrote:
> ruby -i.bak -ne 'print if $_ !~ /foo/' stuff.txt
Coo... that's a new one to me... very nifty.

Unfortunately, I mislead you... I want to transform a file from within a 
cgi script... which means I need to use standard out to generate other 
feedback to the user.  Is a similar facility available within a ruby 
program without executing a new ruby process?