File-Basename

File::Basename(3p) Perl Programmers Reference Guide File::Basename(3p)

File-Basename

File::Basename(3p) Perl Programmers Reference Guide File::Basename(3p) # File::Basename(3p) Perl Programmers Reference Guide File::Basename(3p) NNAAMMEE # File::Basename - Parse file paths into directory, filename and suffix. SSYYNNOOPPSSIISS # use File::Basename; ($name,$path,$suffix) = fileparse($fullname,@suffixlist); $name = fileparse($fullname,@suffixlist); $basename = basename($fullname,@suffixlist); $dirname = dirname($fullname); DDEESSCCRRIIPPTTIIOONN # These routines allow you to parse file paths into their directory, filename and suffix. NNOOTTEE: "dirname()" and "basename()" emulate the behaviours, and quirks, of the shell and C functions of the same name. ...