in reply to Making my own PerlIO layer

Have you seen the pod for PerlIO::via? That gives you the interface specs you need. It's very similar to a tied class in spirit.

You've probably seen that, since you mention the QuotedPrint example. What function is not implemented? What does your attempt look like?

I've used liz's PerlIO::via::MD5 in practical applications. You may get some help by examining that module, too.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: Making my own PerlIO layer
by thor (Priest) on Sep 08, 2004 at 22:09 UTC
    So far, I've only implemented the PUSHED routine, as the docs seem to indicate that that's all that's required. I would have thought that OPEN would have been required, but I gather that if it's not implemented, it will defer to the next lowest layer.

    thor

    Feel the white light, the light within
    Be your own disciple, fan the sparks of will
    For all of us waiting, your kingdom will come