use File::Basename; my $dir = dirname $path; print "The directory is: $dir\n"; [download]
In reply to Re^2: match only last character of a kind by jwkrahn in thread match only last character of a kind by duc