From: Adriano Ferreira Date: Tue, 14 Nov 2006 10:24:38 +0000 (-0200) Subject: Doc patch by Thomas O Smailus : X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dbb1b5d432956ad6dfbabf1a0c1acc561bff49f0;p=p5sagit%2Fp5-mst-13.2.git Doc patch by Thomas O Smailus : Subject: Fwd: [perl #40866] Error on doc page? (File::Basename) From: "Adriano Rodrigues" Message-ID: <73ddeb6c0611140424t26b01d0aq667ca95e77f25e6@mail.gmail.com> p4raw-id: //depot/perl@29272 --- diff --git a/lib/File/Basename.pm b/lib/File/Basename.pm index 7df8c89..2c5e8a9 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) 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) then the pattern matching for suffix removal is performed case-insensitively, since