[Israel.pm] abs_path vs. rel2abs
offer.kaye at gmail.com
Thu Feb 10 13:59:16 PST 2005
On Thu, 10 Feb 2005 21:23:13 +0200, Yuval Yaari wrote:
> rel2abs can get a 2nd argument - base path (and uses cwd as default).
> The 2nd argument is also converted using rel2base.
> Another thing (citing the docs for rel2base, $path is the first argument):
> If $path is absolute, it is cleaned up and returned using "canonpath()".
> So as minor as it may be, there is a difference.
Okay, but why doesn't rel2abs remove "../" stuff from the path, the
way abs_path does?
More information about the Perl