summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-01-08 22:02:26 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-01-08 22:02:26 +0000
commit40d020d967675a6decd375f53496ed3aa1c8be01 (patch)
tree2f46b4a818ef61c1710f4ee71d4c239e356cb7a3 /lib
parent515afda2c0e436f3cb10a1bb091849572581d7a7 (diff)
downloadperl-40d020d967675a6decd375f53496ed3aa1c8be01.tar.gz
Fix the doc for splitpath() in the File::Spec modules :
this function doesn't return undef in any case. p4raw-id: //depot/perl@18465
Diffstat (limited to 'lib')
-rw-r--r--lib/File/Spec.pm2
-rw-r--r--lib/File/Spec/Mac.pm2
-rw-r--r--lib/File/Spec/OS2.pm4
-rw-r--r--lib/File/Spec/Unix.pm4
-rw-r--r--lib/File/Spec/Win32.pm4
5 files changed, 8 insertions, 8 deletions
diff --git a/lib/File/Spec.pm b/lib/File/Spec.pm
index d125b2f3c2..e8b40808ad 100644
--- a/lib/File/Spec.pm
+++ b/lib/File/Spec.pm
@@ -175,7 +175,7 @@ join is the same as catfile.
=item splitpath
Splits a path in to volume, directory, and filename portions. On systems
-with no concept of volume, returns undef for volume.
+with no concept of volume, returns '' for volume.
($volume,$directories,$file) = File::Spec->splitpath( $path );
($volume,$directories,$file) = File::Spec->splitpath( $path, $no_file );
diff --git a/lib/File/Spec/Mac.pm b/lib/File/Spec/Mac.pm
index 000da91b1a..6067b3cd2b 100644
--- a/lib/File/Spec/Mac.pm
+++ b/lib/File/Spec/Mac.pm
@@ -442,7 +442,7 @@ sub path {
($volume,$directories,$file) = File::Spec->splitpath( $path );
($volume,$directories,$file) = File::Spec->splitpath( $path, $no_file );
-Splits a path in to volume, directory, and filename portions.
+Splits a path into volume, directory, and filename portions.
On Mac OS, assumes that the last part of the path is a filename unless
$no_file is true or a trailing separator ":" is present.
diff --git a/lib/File/Spec/OS2.pm b/lib/File/Spec/OS2.pm
index b494e2cbf2..e65186ac48 100644
--- a/lib/File/Spec/OS2.pm
+++ b/lib/File/Spec/OS2.pm
@@ -76,10 +76,10 @@ sub canonpath {
($volume,$directories,$file) = File::Spec->splitpath( $path );
($volume,$directories,$file) = File::Spec->splitpath( $path, $no_file );
-Splits a path in to volume, directory, and filename portions. Assumes that
+Splits a path into volume, directory, and filename portions. Assumes that
the last file is a path unless the path ends in '/', '/.', '/..'
or $no_file is true. On Win32 this means that $no_file true makes this return
-( $volume, $path, undef ).
+( $volume, $path, '' ).
Separators accepted are \ and /.
diff --git a/lib/File/Spec/Unix.pm b/lib/File/Spec/Unix.pm
index 2f45b5ed91..fb8ee98d8e 100644
--- a/lib/File/Spec/Unix.pm
+++ b/lib/File/Spec/Unix.pm
@@ -235,8 +235,8 @@ sub join {
($volume,$directories,$file) = File::Spec->splitpath( $path );
($volume,$directories,$file) = File::Spec->splitpath( $path, $no_file );
-Splits a path in to volume, directory, and filename portions. On systems
-with no concept of volume, returns undef for volume.
+Splits a path into volume, directory, and filename portions. On systems
+with no concept of volume, returns '' for volume.
For systems with no syntax differentiating filenames from directories,
assumes that the last file is a path unless $no_file is true or a
diff --git a/lib/File/Spec/Win32.pm b/lib/File/Spec/Win32.pm
index 7c2275811d..87a236b0d4 100644
--- a/lib/File/Spec/Win32.pm
+++ b/lib/File/Spec/Win32.pm
@@ -170,10 +170,10 @@ sub canonpath {
($volume,$directories,$file) = File::Spec->splitpath( $path );
($volume,$directories,$file) = File::Spec->splitpath( $path, $no_file );
-Splits a path in to volume, directory, and filename portions. Assumes that
+Splits a path into volume, directory, and filename portions. Assumes that
the last file is a path unless the path ends in '\\', '\\.', '\\..'
or $no_file is true. On Win32 this means that $no_file true makes this return
-( $volume, $path, undef ).
+( $volume, $path, '' ).
Separators accepted are \ and /.