in reply to Configurable IO buffersize?

The IO::Handle module provides access to setbuf and setvbuf.

Replies are listed 'Best First'.
Re^2: Configurable IO buffersize?
by Eliya (Vicar) on Jul 31, 2011 at 00:45 UTC

    ...but - as it says in the synopsis of the module - "setvbuf is not available by default on Perls 5.8.0 and later". In other words, setvbuf doesn't work with perls that have been compiled with PerlIO.

    See also 4k read buffer is too small.

Re^2: Configurable IO buffersize?
by BrowserUk (Patriarch) on Jul 31, 2011 at 11:29 UTC

    Thanks. It's a shame it no longer works.

    (I have to wonder about the real benefits of PerlIO. It seems to be an insanely complex, and yet woefully incomplete, re-implementation of stdio, that bypasses both vendor and platform specific optimisations, for not much gain.)


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.