Re: RFC 14 (v3) Modify open() to support FileObjects and
[email protected] (Joe McMahon) Mon, 14 Aug 2000 11:24:48 -0400 (EDT)
| Newsgroups | perl.perl6.language.io |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 12 Aug 2000, Nathan Wiger wrote:
> > Pick one:
> >
> > 1) Filenames that end with a '/' are directories and those that don't
> > are files. (Both examples are files.)
>
> No, too restrictive. I don't like this and would hate having to remember
> it.
>
Plus the non-"/" separated filename conventions (MacOS in
particular) would not work well with this. "/" has no relationship to
directory in MacOS. Colon, on the other hand, does.
I think it's better not to assume anything about directory separator
character. Perhaps a filespec pragma might be useful?
use filespec MacOS; # Perl now "knows" to use ":" as the
# directory separator
use filespec VMS; # include versioning, etc
use filespec; # slash as "usual" (?)
and so on.
--- Joe M.