in reply to relative paths

Since there is abs2rel and other goodies in File::Spec
abs2rel should be what you are using. Why is that function not suitable?

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: relative paths
by John M. Dlugosz (Monsignor) on Nov 27, 2001 at 03:27 UTC
    Because it never occured to me that it could hop between siblings (by inserting ..'s)—I thought it only trimmed off a root. I also don't know what it would do if given another relative path as the "current" parameter.