Reference: basename
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:46:57Z

#

| Chapter 8 Standard Modules |

## basename

    basename (fullname[, suffixlist])

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

8.68 File::Basename |  | Reference: dirname