in reply to Making File::Spec cross platform
$ ls; echo -----; ls d/.. d ----- b
So how would you clean up this path? ;-)
Yes, I've produced a pathological case: in /tmp/a/b/c, I created a symlink d -> .. - thus d/.. really is ../.. and we get the wierd output. However, I have similar structures of links going all over the place where we actually rely on this type of behaviour, otherwise we couldn't do what we wanted at all. So I'm quite glad File::Spec behaves as it does on Unix.
In my mind, then, File::Spec already is cross platform in that it works on all platforms as well as it can without sacraficing accuracy. That's perfect for me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Making File::Spec cross platform
by DrWhy (Chaplain) on May 20, 2005 at 15:21 UTC | |
by Tanktalus (Canon) on May 20, 2005 at 16:09 UTC |