Re: [MacPerl-Porters] A new catdir() for review/discussion
[email protected] (Chris Nandor)
| Newsgroups | perl.macperl.porters |
|---|---|
| Message-ID | <p05100304b7e827d12b0f@[10.0.1.177]> |
At 18:45 +0200 2001.09.30, Thomas Wegner wrote:
>In theory, this sounds clear. But when it gets to coding, the decision has to
>be made what happens with calls like
>
> catdir('', '::') or
> catdir('', ':a','b:')
>
>Obviously, the resulting path can't simply be made absolute, especially in the
>first example. Hence, I'd suggest, that an empty string when passed as
>the first argument is treated as File::Spec->rootdir, which on Unix is
>"/", and on Mac OS is the startup volume. This is the most portable way
>for solving this absolute path problem I can think of. Comments welcome.
Sounds good to me.
I assume a patch here would also include a new catfile() if necessary (that
is, it is just implemented mostly via catdir() anyway).
It would also be nice if you could supply a doc patch for lib/File/Spec.pm,
but don't worry about it if you can't or don't want to. :-)
Thanks,
--
Chris Nandor [email protected] http://pudge.net/
Open Source Development Network [email protected] http://osdn.com/