in reply to Re: Platform Independent Directory Traversal
in thread Platform Independent Directory Traversal
However, is this right? Is this how the updir() function was intended to be used? I've probably just been ruminating on the problem for too long. But this solution still somewhat bothers me.use File::Basename qw(dirname); use File::Spec; print File::Spec->rel2abs( File::Spec->catdir( dirname(__FILE__), File::Spec->updir(), ) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Platform Independent Directory Traversal
by chromatic (Archbishop) on Jul 29, 2007 at 05:25 UTC | |
by wind (Priest) on Jul 29, 2007 at 07:11 UTC | |
|
Re^3: Platform Independent Directory Traversal
by bart (Canon) on Jul 29, 2007 at 10:39 UTC |