#!/usr/local/bin/perl -w eval 'exec /usr/local/bin/perl -w -S $0 ${1+"$@"}' if 0; # not running under some shell # # $Id: basename,v 1.1.1.1 2001/06/06 08:54:03 sdague Exp $ # # $Log: basename,v $ # Revision 1.1.1.1 2001/06/06 08:54:03 sdague # initial import # # Revision 1.1.1.1 2001/05/13 19:55:38 sdague # added initial import of PPT work # # Revision 1.1 1999/02/27 00:18:47 abigail # Initial revision # # use strict; use File::Basename; my ($VERSION) = '$Revision: 1.1.1.1 $' =~ /([.\d]+)/; unless (@ARGV == 1 || @ARGV == 2) { $0 = basename ($0); print < prints the file component of a path. A second argument to I 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. =head2 OPTIONS I does not accept any options. =head1 ENVIRONMENT The working of I is not influenced by any environment variables. =head1 BUGS I has no known bugs. =head1 STANDARDS This I implementation is compliant with the B specification, also known as B. This I implementation is compatible with the B implementation. The I is specific for this Perl implementation. =head1 REVISION HISTORY $Log: basename,v $ Revision 1.1.1.1 2001/06/06 08:54:03 sdague initial import Revision 1.1.1.1 2001/05/13 19:55:38 sdague added initial import of PPT work Revision 1.1 1999/02/27 00:18:47 abigail Initial revision =head1 AUTHOR The Perl implementation of I was written by Abigail, I. =head1 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. =cut