good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Dear Monks,
I am trying to figure out how to go from a path such as foo/../bar/../baz/ to baz/. 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 File::Spec three times over expecting it to be there but I don't see it. How do I do this without dodgy regexes? Thanks! In reply to Collapsing paths by rvosa
|
|