in reply to How to get a file's full path?
It's a builtin module (at least in 5.8.7) so installation shouldn't be a concern.$abs_path = File::Spec->rel2abs( $path ) ; $abs_path = File::Spec->rel2abs( $path, $base ) ;
Update:
See also the extended discussion at Absolute pathnames from relative?.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to get a file's full path?
by bart (Canon) on Aug 14, 2005 at 11:17 UTC |