start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.68 File::Basename Chapter 8
Standard Modules
Next: Reference: dirname
 

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


Previous: 8.68 File::Basename Perl in a Nutshell Next: Reference: dirname
8.68 File::Basename Book Index Reference: dirname

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.