Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.67 fieldsChapter 8
Standard Modules
Next: 8.69 File::CheckTree
 

8.68 File::Basename

Parses a file's path, returning its three component pieces: the path to the file, the file's basename, and the file's extension. For example, for:

/usr/local/lib/perl5/SelectSaver.pm
the path is /usr/local/lib/perl5, the basename is SelectSaver, and the extension is .pm. File::Basename exports the following functions:


Previous: 8.67 fieldsPerl in a NutshellNext: 8.69 File::CheckTree
8.67 fieldsBook Index8.69 File::CheckTree