in reply to working with relative paths

Take a look at File::Spec. It has quite a few very handy methods to portably manipulate paths, including abs2rel and rel2abs, which convert absolute paths to relative paths and visa versa. Unless I'm misunderstanding the problem, you should be able to use them to do what you need (it makes use of cwd if a base path is not supplied).

HTH

Replies are listed 'Best First'.
Re^2: working with relative paths
by apotheon (Deacon) on Oct 30, 2004 at 04:07 UTC

    It turns out I just made a stupid, boneheaded error, actually, as fglock pointed out above. It looks like File::Spec will be of great use to me in the future, though. Thanks for the link.

    - apotheon
    CopyWrite Chad Perrin