in reply to Re: Answer: How do I get the directory containing a given file?in thread How do I get the directory containing a given file?
use Cwd qw(abs_path); use File::Basename; my $dir = abs_path(dirname($file)); [download]