diff options
author | Boris Zentner <bzm@2bz.de> | 2004-06-12 18:29:42 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-06-15 14:35:00 +0000 |
commit | 1c33a35cacbed722d4acd472a2aa2fc114a4db3c (patch) | |
tree | 5236f14683133c9db1c283b51bd5b9492245d313 /lib/File | |
parent | 2b0572841e170b6dd3ff1e2adc09565a9efdf3f1 (diff) | |
download | perl-1c33a35cacbed722d4acd472a2aa2fc114a4db3c.tar.gz |
File::Basename docs
Message-Id: <200406121629.42595.bzm@2bz.de>
p4raw-id: //depot/perl@22938
Diffstat (limited to 'lib/File')
-rw-r--r-- | lib/File/Basename.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/File/Basename.pm b/lib/File/Basename.pm index 58a740e56a..887c7bae4a 100644 --- a/lib/File/Basename.pm +++ b/lib/File/Basename.pm @@ -12,7 +12,8 @@ dirname - extract just the directory from a path use File::Basename; - ($name,$path,$suffix) = fileparse($fullname,@suffixlist) + ($name,$path,$suffix) = fileparse($fullname,@suffixlist); + $name = fileparse($fullname,@suffixlist); fileparse_set_fstype($os_string); $basename = basename($fullname,@suffixlist); $dirname = dirname($fullname); @@ -70,6 +71,8 @@ You are guaranteed that if you concatenate B<path>, B<name>, and B<suffix> together in that order, the result will denote the same file as the input file specification. +In scalar context, fileparse() returns only the B<name> part of the filename. + =back =head1 EXAMPLES @@ -142,7 +145,7 @@ our(@ISA, @EXPORT, $VERSION, $Fileparse_fstype, $Fileparse_igncase); require Exporter; @ISA = qw(Exporter); @EXPORT = qw(fileparse fileparse_set_fstype basename dirname); -$VERSION = "2.72"; +$VERSION = "2.73"; # fileparse_set_fstype() - specify OS-based rules used in future |