From: John P. Linderman Date: Tue, 25 Jun 2002 06:51:09 +0000 (-0400) Subject: Re: glob [possible PATCH for perlfunc.pod] X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d9a9d4576ee524be82c47fd4efcdec0a4cc327e4;p=p5sagit%2Fp5-mst-13.2.git Re: glob [possible PATCH for perlfunc.pod] From: "John P. Linderman" Message-ID: <200206251051.GAA44772@raptor.research.att.com> (reformatted) p4raw-id: //depot/perl@17355 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 42e0f23..c617e94 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -2040,11 +2040,13 @@ Returns the socket option requested, or undef if there is an error. =item glob -Returns the value of EXPR with filename expansions such as the -standard Unix shell F would do. This is the internal function -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. +In list context, returns a (possibly empty) list of filename expansions on +the value of EXPR such as the standard Unix shell F would do. In +scalar context, glob iterates through such filename expansions, returning +undef when the list is exhausted. This is the internal function +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. Beginning with v5.6.0, this operator is implemented using the standard C extension. See L for details.