Help for this page
use File::Basename; my $file = '/htdocs/project1/docs/file.html'; my $parent = basename(dirname($file)); print "$parent\n";
docs