in reply to Full path to the current file?
File::Spec, File::Basename
use File::Spec; use File::Basename; my $f = '../blah.txt'; my $dir = dirname( File::Spec->rel2abs($f) );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Full path to the current file?
by svenXY (Deacon) on Jan 08, 2008 at 15:02 UTC | |
by davidrw (Prior) on Jan 08, 2008 at 16:01 UTC | |
Re^2: Full path to the current file?
by RoUS (Initiate) on Jan 08, 2008 at 16:42 UTC |
In Section
Seekers of Perl Wisdom