in reply to Re: Directory Separator (none)
in thread Directory Separator
Sadly, File::Spec::Unix::catdir('foo','bar') returns "foo/bar" not "foo/bar/". You might consider filing a bug against that. I have no idea if those who would be notified of such a bug report would have any sympathy toward our point of view on that, however.It's documented, so not a bug:
catdir - Concatenate two or more directory names to form a complete path ending with a directory. But remove the trailing slash from the resulting string, because it doesn't look good, isn't necessary and confuses OS/2. Of course, if this is the root directory, don't cut off the trailing slash :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Directory Separator (none)
by tye (Sage) on May 28, 2013 at 23:03 UTC | |
by vsespb (Chaplain) on May 28, 2013 at 23:39 UTC | |
by Anonymous Monk on May 29, 2013 at 15:36 UTC |