[Israel.pm] abs_path vs. rel2abs

Offer Kaye 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):
> <CITE>
> If $path is absolute, it is cleaned up and returned using "canonpath()".
> </CITE>
> 
> 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?

-- 
Offer Kaye



More information about the Perl mailing list