Re: File::Spec catfile etc.
[email protected] (Chris Nandor)
| Newsgroups | perl.perl5.porters,perl.macperl.porters,perl.vmsperl |
|---|---|
| Message-ID | <p05100302b7cae648910e@[10.0.1.177]> |
At 12:02 +0200 2001.09.15, Bart Lateur wrote: >p.s. WRT to what C.Nandor wrote: how would you even recognize a volume >name on a Mac? After all, it looks just like any other filename. The standard we are following is that anything that contains a ":" but does not begin with a ":" is assumed to be absolute. "foo" is relative, "foo:bar" is absolute, "foo:" is absolute, ":foo:bar" and ":foo:" are obviously relative. This is, as I understand it, the proper way to do things. Examples: cd Bird ### directory - Unable to set current directory. # Directory not found (OS error -120) (fails) cd Bird: (succeeds) cd tmp:perl ### directory - Unable to set current directory. # Specified volume doesn't exist (OS error -35) (fails) cd :tmp:perl (succeeds) -- Chris Nandor [email protected] http://pudge.net/ Open Source Development Network [email protected] http://osdn.com/