From: ahoward Date: 2002-11-16T04:23:35+09:00 Subject: Re: Problem writing to file after closing $stdout & $stderr On 15 Nov 2002, Eric Schwartz wrote: > ts writes: > > >>>>> "E" == Eric Schwartz writes: > > > > E> 7 $stdout.close > > E> 8 $stdout = nil > > > > It want to flush $stdout, don't make an assignement after the close > > Why? $stdout.close should flush the filehandle. At least, in every > other programming language I've ever used, closing a filehandle > flushes its output. I cannot see any good reason why any filehandle, > once closed, should have any I/O associated with it. i think this is because sync is false for stdout, stderr etc. eg. the close is a *request* to close and flush, but the os may defer the flush. that is, unless sync were true for all the closed handles... -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================