Re: RFC 14 (v2) Modify open() to support FileObjects and
[email protected] (Chaim Frenkel) 10 Aug 2000 15:42:13 -0400
| Newsgroups | perl.perl6.language.io |
|---|---|
| Message-ID | <[email protected]> |
What about native extensions? I think VMS (and the old TOPS10) had versions as part of the file name. Do URIs have this capablity? And what does a read of a directory return? URIs or Native? A job for binmode, err, readmode, or a line discipline? <chaim> >>>>> "JSD" == Jonathan Scott Duff <[email protected]> writes: JSD> On Wed, Aug 09, 2000 at 07:26:29PM +0000, Nick Ing-Simmons wrote: >> Graham Barr <[email protected]> writes: >> >On Wed, Aug 09, 2000 at 11:41:42AM -0500, Jonathan Scott Duff wrote: >> >> How about this? >> >> >> >> open '/etc/passwd'; # file >> > >> >OK >> > >> >> open '/usr/local/bin/'; # directory (note the trailing '/') >> > >> >Portability, not all platforms use / JSD> Hmm. So that would be JSD> open 'file://etc/passwd'; JSD> open 'dir://usr/local/bin'; JSD> with the default open method being "file"? -- Chaim Frenkel Nonlinear Knowledge, Inc. [email protected] +1-718-236-0183