in reply to Re^2: convert a given dir name to its absolute path
in thread convert a given dir name to its absolute path

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).


Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan