in reply to open() enhancements

Interesting; but why not use the existing (in 5.8) IO Layers?
--
Mike

PS: Those would have been [perldoc://] links, if perldoc had 5.8 docs yet...

Replies are listed 'Best First'.
Re: Re: open() enhancements
by John M. Dlugosz (Monsignor) on Aug 21, 2002 at 20:00 UTC
    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.

      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