[perl #85884] Erroneous description of File::Basename::fileparse
authorFather Chrysostomos <sprout@cpan.org>
Fri, 11 Mar 2011 21:22:43 +0000 (13:22 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 11 Mar 2011 21:24:56 +0000 (13:24 -0800)
Literal backslashes need single quotes.

lib/File/Basename.pm

index 696b601..f928e32 100644 (file)
@@ -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.80";
+$VERSION = "2.81";
 
 fileparse_set_fstype($^O);
 
@@ -78,8 +78,8 @@ The remainder of the $path is the $filename.
      # On Unix returns ("baz", "/foo/bar/", "")
      fileparse("/foo/bar/baz");
 
-     # On Windows returns ("baz", "C:\foo\bar\", "")
-     fileparse("C:\foo\bar\baz");
+     # On Windows returns ("baz", 'C:\foo\bar\', "")
+     fileparse('C:\foo\bar\baz');
 
      # On Unix returns ("", "/foo/bar/baz/", "")
      fileparse("/foo/bar/baz/");