in reply to Re: split a path/filename
in thread split a path/filename

From the same module:
my ($basename, $dirname) = fileparse($_);