in reply to Re: open() enhancements
in thread open() enhancements

You mean simply implement these flags in the PerlIO back-end?

Hmm, "layers" is the new name for "disciplines". OK, that won't work because the discipline is applied after the file is opened. The new name "layer" makes the distinction clear.

Hmm2, open( $fh, "<:encoding(iso-8859-7)", $pathname ); indeed looks like what I'm talking about. And since :scalar exists, it must be processed early enough. It's not just for binmode anymore! Great.

Replies are listed 'Best First'.
Re: Re: Re: open() enhancements
by RMGir (Prior) on Aug 21, 2002 at 20:08 UTC
    Not really; the scalar layer lets you use a scalar as if it were a file, and the mmap layer tells perl to use mmap to open the file.

    There are also stdio and unix (read/write/lseek/close) layers.

    If you can do all that, you can do what you'd need for sharing and such too, looks like...
    --
    Mike