diff options
author | Brian Gottreu <gottreu@gmail.com> | 2013-06-16 13:37:33 -0500 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-06-22 22:11:44 -0700 |
commit | 555bd962bf06d749086724e280b3588586df7805 (patch) | |
tree | 50a45eca58f93ccc0fe9ddb4e9167d302f6b6415 /lib/File | |
parent | 6ca3c6c679258bbb20a4445b34608d144ac7090d (diff) | |
download | perl-555bd962bf06d749086724e280b3588586df7805.tar.gz |
Fixed verbatim lines in POD over 79 characters
Diffstat (limited to 'lib/File')
-rw-r--r-- | lib/File/Basename.pm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/File/Basename.pm b/lib/File/Basename.pm index ad98d24d19..4783192035 100644 --- a/lib/File/Basename.pm +++ b/lib/File/Basename.pm @@ -64,14 +64,14 @@ fileparse_set_fstype($^O); =item C<fileparse> X<fileparse> - my($filename, $directories, $suffix) = fileparse($path); - my($filename, $directories, $suffix) = fileparse($path, @suffixes); - my $filename = fileparse($path, @suffixes); + my($filename, $dirs, $suffix) = fileparse($path); + my($filename, $dirs, $suffix) = fileparse($path, @suffixes); + my $filename = fileparse($path, @suffixes); -The C<fileparse()> routine divides a file path into its $directories, $filename +The C<fileparse()> routine divides a file path into its $dirs, $filename and (optionally) the filename $suffix. -$directories contains everything up to and including the last +$dirs contains everything up to and including the last directory separator in the $path including the volume (if applicable). The remainder of the $path is the $filename. @@ -95,7 +95,7 @@ If type is non-Unix (see L</fileparse_set_fstype>) then the pattern matching for suffix removal is performed case-insensitively, since those systems are not case-sensitive when opening existing files. -You are guaranteed that C<$directories . $filename . $suffix> will +You are guaranteed that C<$dirs . $filename . $suffix> will denote the same location as the original $path. =cut @@ -250,10 +250,10 @@ C<fileparse()>. Only on VMS (where there is no ambiguity between the file and directory portions of a path) and AmigaOS (possibly due to an implementation quirk in this module) does C<dirname()> work like C<fileparse($path)>, returning just the -$directories. +$dirs. # On VMS and AmigaOS - my $directories = dirname($path); + my $dirs = dirname($path); When using Unix or MSDOS syntax this emulates the C<dirname(1)> shell function which is subtly different from how C<fileparse()> works. It returns all but |