http://www.perlmonks.org?node_id=275071


in reply to Extract Name of Parent Directory

To go along with the example above, Perl comes with File::Basename, so you don't have to go looking for it at CPAN.

You should do: " perldoc File::Basename " to get further info about it, as there are other functions that you may find useful.

LR