Attached is a patch relative to bleadperl (Jarkko do not apply patch, when we are ready "p4 integrate -r perlio"). It stops -Duseperlio being a wrapper on stdio and instead implements the PerlIO abstraction in a stdio-like manner itself. It does _NOT_ yet do line disciplines or anything "cool" but it does pass "make test" on my Linux machine. Running two "make tests" at once - one with it on and one with normal Linux stdio seem to run in step so performance is not too bad. It should avoid the 256 FILE * limit if that is one of your care-abouts. I would like to know if it builds/works on other systems in case I have botched use of 'Configure' variables or accidentally relied on Linux-ish glibc features. I expect the error cases need more work. Now I have a "basis" I plan to start mutating it into what we really want. The first stage of that is to add "line disciplines" akin to sfio's but perhaps with a more perl-ish feel - and in particular the "unread" scheme I was waffling on about a week or three back. I am less sure that we should change/augment API to pass in SVs (changing would break XS code, augmenting means (presumably) that SV route calls the non-SV layer which is a (minor) speed disadvantage). -- Nick Ing-Simmons