A quick look at the source code shows that rel2abs (like many of the functions in File::Spec) calls canonpath. One of the things that function does is remove the trailing delimiter. According to the docs (for catdir, as it turns out), this is because
it doesn't look good, isn't necessary and confuses OS/2
I am not as familiar with the functions in Cwd, but after looking at the docs and source code it also appears to leave off the trailing delimiter.
If you really want a trailing delimiter, then you may have to add it yourself. Sorry. :-)
In reply to Re^3: Path strings
by bobf
in thread Path strings
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |