in reply to Increasing Buffer size of STDIN on PERL Program
The libc function setvbuf() does what you want. Perl exposes that function in the IO::Handle module. There is a note in the docs saying that setvbuf is not imported by default in Perl 5.8.0 and later, because of PerlIO's bypassing of stdlib.
You should test for whatever portability matters to you.
After Compline,
Zaxo
|
|---|