Chip Salzenberg on 3 May 2004 15:19:11 -0000 |
According to Walt Mankowski: > File::Spec->rel2abs almost does this, but it doesn't handle ".." Well, you realize that in the presence of symlinks, stripping out "foo/.." actually changes the path you're interested in... I'd probably do the rel2abs thing and then go all non-portable, since ".." is kind of a Unixish thing anyway: s{ / \.\. / [^/]+ }{}xg -- Chip Salzenberg - a.k.a. - <chip@pobox.com> '"Bob" is two dimensional, and that is what gives Him such depth.' - **Majordomo list services provided by PANIX <URL:http://www.panix.com>** **To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|
|