On Mar 20, 1:45 pm, [email protected] ("John W. Krahn") wrote: > C.DeRykus wrote: > > On Mar 19, 8:31 pm, [email protected] (Walt Chen) wrote: >.... > > > See: perldoc -q buffer > > > This will explain why 'syswrite' will report error, say a > > full disk partition, when print may not due to buffering. > > > And the remedy from the above docs is to force > > unbuffering : > > > $old_fh = select(OUTPUT_HANDLE); > > $| = 1; > > select($old_fh); > > As it says in the FAQ page you pointed out above that 'will flush the > handle’s buffer after each "print()" or "write()"'. So you still have a > buffer, it's just that the buffer is flushed more often than normal. >
True, but "unbuffering" is not "non-buffering" :) . It's analogous to "unloading the car" after shopping. At least that's the way I meant it... -- Charles DeRykus -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
