From: Michal Suchanek Date: 2009-02-09T21:30:36+09:00 Subject: Re: assignment to $stdout deprecated? 2009/2/9 7stud -- : > Michal Suchanek wrote: >>> What am I doing wrong? >> >> Not reading the docs. >> >> It should be obvious from description of IO#reopen that you cannot use >> StringIO in this way because it does not have an underlying file >> descriptor. >> > > I posted the docs. They say no such thing. Yes, only IO::for_fd mentions the use of fds, IO#reopen does not mention this limitation. This is probably a bug in the documentation. Thanks Michal