perlquestion
rvosa
Dear Monks,
<br/><br/>
I am trying to figure out how to go from a path such as <code>foo/../bar/../baz/</code> to <code>baz/</code>. I hope I figured out the example correctly, but you see what I mean: collapse the up-and-down again stuff into a neat straight path. I read the pod for [cpan://File::Spec] three times over expecting it to be there but I don't see it. How do I do this without dodgy regexes?
<br/><br/>
Thanks!