René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback -
 

File::Basename

With File::Basename, perl makes it possible to decompose a path into its directory and filename:
use File::Basename;
print dirname ("/foo/bar/baz.tar.gz"),"\n";
print basename("/foo/bar/baz.tar.gz"),"\n";