in reply to How to get the Directory Path
use File::Basename; my $filename = 'c:/Programfile/Perl/test/temp.txt'; my $dirname = dirname($filename); [download]