Subject: | a bug in Cwd |
Date: | Thu, 17 Dec 2009 16:55:02 +0800 |
To: | bug-PathTools [...] rt.cpan.org |
From: | Albert Q <albert.q.perl [...] gmail.com> |
perl v5.10.0
Cwd $VERSION = '3.2501';
in /home/albert
abs_path "testfolder" returns /home/albert/testfolder
abs_path "../testfolder" returns undef
abs_path "testfolder/a" returns undef
/home/albert/testfolder /home/testfolder and
/home/albert/testfolder/a are all invalid path
but if the parameter passed to abs_path does not contain "/", it will return
the concatenated path directly without checking existence.
--
missing the days we spend together