=over =item glob EXPR X X X X =item glob 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. Note that C splits its arguments on whitespace and treats each segment as separate pattern. As such, C matches all files with a F<.c> or F<.h> extension. The expression C matchs all files in the current working directory. If non-empty braces are the only wildcard characters used in the C, no filenames are matched, but potentially many strings are returned. For example, this produces nine strings, one for each pairing of fruits and colors: @many = glob "{apple,tomato,cherry}={green,yellow,red}"; Beginning with v5.6.0, this operator is implemented using the standard C extension. See L for details, including C which does not treat whitespace as a pattern separator. =back