diff options
author | Adriano Ferreira <a.r.ferreira@gmail.com> | 2006-11-14 08:24:38 -0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-11-14 12:36:15 +0000 |
commit | dbb1b5d432956ad6dfbabf1a0c1acc561bff49f0 (patch) | |
tree | 95401b5ab9cdbf4b6e15c71f01446559d661dbda | |
parent | 3d82f0cdac7e45415d6eeb0eb18c4b5c1d1f1728 (diff) | |
download | perl-dbb1b5d432956ad6dfbabf1a0c1acc561bff49f0.tar.gz |
Doc patch by Thomas O Smailus :
Subject: Fwd: [perl #40866] Error on doc page? (File::Basename)
From: "Adriano Rodrigues" <a.r.ferreira@gmail.com>
Message-ID: <73ddeb6c0611140424t26b01d0aq667ca95e77f25e6@mail.gmail.com>
p4raw-id: //depot/perl@29272
-rw-r--r-- | lib/File/Basename.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/File/Basename.pm b/lib/File/Basename.pm index 7df8c89619..2c5e8a9cd0 100644 --- a/lib/File/Basename.pm +++ b/lib/File/Basename.pm @@ -54,7 +54,7 @@ our(@ISA, @EXPORT, $VERSION, $Fileparse_fstype, $Fileparse_igncase); require Exporter; @ISA = qw(Exporter); @EXPORT = qw(fileparse fileparse_set_fstype basename dirname); -$VERSION = "2.75"; +$VERSION = "2.76"; fileparse_set_fstype($^O); @@ -89,7 +89,7 @@ C<qr//>) matched against the end of the $filename. The matching portion is removed and becomes the $suffix. # On Unix returns ("baz", "/foo/bar", ".txt") - fileparse("/foo/bar/baz", qr/\.[^.]*/); + fileparse("/foo/bar/baz.txt", qr/\.[^.]*/); If type is non-Unix (see C<fileparse_set_fstype()>) then the pattern matching for suffix removal is performed case-insensitively, since |