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 |