From: Mark Wilson Date: 2003-07-06T16:59:16+09:00 Subject: Re: [How do I:] get what's in $stderr as a string? On Friday, July 4, 2003, at 06:51 PM, Mark Wilson wrote: > How do I get access to what's in $stderr in the form of a string? > > [snip] > I'm aware of a way to do something similar provided by Brain Candler > in an earlier message: > > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/71151 > > I am having trouble following how I might implement the above, and I > don't know if it is the answer to the difficulty I am having. > > [snip] I tried Brian's solution and it worked perfectly. I should have tried it before asking. I still don't really follow how it works (it's a little like magic to me), so any education on that would be good. I think that a declarative way of accessing the contents of what a method writes to stderr would be a good addition to Ruby. Regards, Mark Wilson