develooper Front page | perl.perl5.porters | Postings from June 2003

Re: [perl #22339] IO::Handle::setvbuf not defined properly

Thread Previous | Thread Next
Mark Jason Dominus
June 16, 2003 11:07
Re: [perl #22339] IO::Handle::setvbuf not defined properly
Message ID:
Chip Salzenberg <>:
> According to Mark-Jason Dominus:
> >   $rec = <FH>;
> > but that implies some sort of buffering, and the buffering confounds
> > concurrent access.
> You could resort to sysread/syswrite/sysseek and just Not Do That
> (wrt readline).

Back on 28 May, I had said:

>> I thought my choices were
>> a) use setvbuf() to discard the buffer, perhaps temporarily, or
>> b) discard the buffered I/O system entirely and rewrite everything in
>> terms of sysread(), effectively reimplementing the entire buffered I/O
>> subsystem in Perl.
>> But now it appears that my only choice is (b).  This isn't very
>> attractive.  Is there some other option I've overlooked?

What you appear to be suggesting is (b).  Have I missed something?

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About