Skip to content

Commit

Permalink
Link to undef for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
scottchiefbaker committed May 26, 2021
1 parent be5f291 commit d33ed41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pod/perlfunc.pod
Expand Up @@ -3370,10 +3370,10 @@ X<glob> X<wildcard> X<filename, expansion> X<expand>
=for Pod::Functions expand filenames using wildcards

In list context, returns a (possibly empty) list of filename expansions on
the value of EXPR such as the standard Unix shell F</bin/csh> would do. In
the value of EXPR such as the standard Unix shell C</bin/csh> would do. In
scalar context, glob iterates through such filename expansions, returning
undef when the list is exhausted. If EXPR is omitted, L<C<$_>|perlvar/$_>
is used.
L<C<undef>|/undef EXPR> when the list is exhausted. If EXPR is omitted,
L<C<$_>|perlvar/$_> is used.

# List context
my @txt_files = glob("*.txt");
Expand Down

0 comments on commit d33ed41

Please sign in to comment.