Change 34089 by [EMAIL PROTECTED] on 2008/06/26 07:57:35

        Subject: Re: [perl #56348] [PATCH] glob() with spaces - documentation 
unclear
        From: Paul Fenwick <[EMAIL PROTECTED]>
        Date: Thu, 26 Jun 2008 11:41:45 +1000
        Message-ID: <[EMAIL PROTECTED]>

Affected files ...

... //depot/perl/pod/perlfunc.pod#603 edit

Differences ...

==== //depot/perl/pod/perlfunc.pod#603 (text) ====
Index: perl/pod/perlfunc.pod
--- perl/pod/perlfunc.pod#602~34080~    2008-06-23 09:55:46.000000000 -0700
+++ perl/pod/perlfunc.pod       2008-06-26 00:57:35.000000000 -0700
@@ -2348,8 +2348,14 @@
 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>
End of Patch.

Reply via email to