summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorPaul Fenwick <pjf@perltraining.com.au>2008-06-26 21:41:45 +1000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-06-26 07:57:35 +0000
commit5c0c92498b6ba0a383a35500e079d57433a354d4 (patch)
tree3d3c4015dc180ae7ff419a8fa6326d08c9151811 /pod
parenta3ed38f29b0cc1154e71db6c6dc72ea84c7f4cce (diff)
downloadperl-5c0c92498b6ba0a383a35500e079d57433a354d4.tar.gz
Re: [perl #56348] [PATCH] glob() with spaces - documentation unclear
Message-ID: <4862F3D9.5010105@perltraining.com.au> p4raw-id: //depot/perl@34089
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod8
1 files changed, 7 insertions, 1 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 840ddbcc00..e5518afdd7 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -2348,8 +2348,14 @@ implementing the C<< <*.c> >> operator, but you can use it directly. If
EXPR is omitted, C<$_> is used. The C<< <*.c> >> operator is discussed in
more detail in L<perlop/"I/O Operators">.
+Note that C<glob> will split its arguments on whitespace, treating
+each segment as separate pattern. As such, C<glob('*.c *.h')> would
+match all files with a F<.c> or F<.h> extension. The expression
+C<glob('.* *')> would match all files in the current working directory.
+
Beginning with v5.6.0, this operator is implemented using the standard
-C<File::Glob> extension. See L<File::Glob> for details.
+C<File::Glob> extension. See L<File::Glob> for details, including
+C<bsd_glob> which does not treat whitespace as a pattern separator.
=item gmtime EXPR
X<gmtime> X<UTC> X<Greenwich>