Name
basename
Synopsis
basename (fullname
[, suffixlist
])
Description
Returns the first element of the list that would be produced if you
called fileparse
with the same arguments. Provides
compatibility with the Unix basename command.
Takes the following arguments:
- fullname
Input file specification
- suffixlist
Optional list containing patterns to be matched against the end of fullname to find the suffix
Get Perl in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.