Executed in /usr/local/bin:
$abs_path = File::Spec->rel2abs( "../../"); print "$abs_path\n __OUTPUT__ /usr/local/bin/../..
So it works correctly on my platform (Linux with perl 5.8.4).
In reply to Re^3: convert a given dir name to its absolute path
by tirwhan
in thread convert a given dir name to its absolute path
by azaria
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |