Re: File::Spec catfile etc.
[email protected] (Tim Jenness)
| Newsgroups | perl.perl5.porters,perl.macperl.porters,perl.vmsperl |
|---|---|
| Message-ID | <Pine.LNX.4.33.0109131639220.19767-100000@lapaki> |
On Thu, 13 Sep 2001, Chris Nandor wrote:
> So did we ever come to a consensus on this issue? I think where we left it:
>
> 1. catfile/catdir should be relative by default
> 2. if the first argument is something denoting a root-level item ('/',
> 'HD:', 'C:') or an empty string (''), then the behavior should be some sort
> of platform-specific absolute path
> 3. for real absolute paths rely on catpath
>
> Is this about right? Or am I off-base again?
>
Fine with me. The important point is 3 - if people want to write code that
will run on another OS they should not be using platform specific volume
notation in catfile (which may catch people out given that File::Spec is
meant to give people platform independent processing).
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj