From: Stephen Waits Date: 2006-03-07T21:58:07+09:00 Subject: How to capture eval's stdout in 1.8? My searches have come up empty, and most of what I found refers to 1.6 (assigning $defout to a StringIO instance). However, under 1.8 this doesn't work because: a) assignment to $stdout (which deprecates $defout) is deprecated b) $stdout.reopen( StringIO ) doesn't work as reopen expects a true IO instance And, for that matter, I couldn't even get it to redirect to a File. Seems like it should be easy.. anyone? Thanks, Steve