However, I'm looking at code that handles arbitrary paths that the caller has passed in. There is a distinct possibility that the path might contain updir segments (i.e. '..' in Unix). I want to reduce this to a canonical path. I tried File::Spec->canonpath, and was disappointed to find that it does not deal with '..', nore does rel2abs, nor does no_upwards - all of which suggest that they might do the job.
Have I missed something? Or is there another CPAN module which achieves this? I will write one if there isn't.
--
I'm Not Just Another Perl Hacker
In reply to How to get a true canonical path by rinceWind
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |