Casey West > ppt-0.14 > basename

Download:
ppt-0.14.tar.gz

Annotate this POD

CPAN RT

New  3
Open  2
View/Report Bugs
Source  

NAME ^

basename -- print the basename of a file.

SYNOPSIS ^

basename string [suffix | /pattern/]

DESCRIPTION ^

basename prints the file component of a path. A second argument to basename is interpreted as a suffix to remove from the file. If the suffix is sandwiched between slashes, the suffix is considered a Perl regular expression, anything at the end of the string that matches is removed before printing it out.

OPTIONS

basename does not accept any options.

ENVIRONMENT ^

The working of basename is not influenced by any environment variables.

BUGS ^

basename has no known bugs.

STANDARDS ^

This basename implementation is compliant with the IEEE Std1003.2-1992 specification, also known as POSIX.2.

This basename implementation is compatible with the OpenBSD implementation.

The /pattern/ is specific for this Perl implementation.

REVISION HISTORY ^

    $Log: basename,v $
    Revision 1.2  2004/08/05 14:17:43  cwest
    cleanup, new version number on website

    Revision 1.1  2004/07/23 20:10:00  cwest
    initial import

    Revision 1.1  1999/02/27 00:18:47  abigail
    Initial revision

AUTHOR ^

The Perl implementation of basename was written by Abigail, abigail@fnx.com.

COPYRIGHT and LICENSE ^

This program is copyright by Abigail 1999.

This program is free and open software. You may use, copy, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same.

syntax highlighting: