[Chapter 8] 8.72 File::DosGlob
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:47:06Z

#

| Chapter 8 Standard Modules |

## 8.72 File::DosGlob

Provides a portable enhanced DOS-like globbing for the standard Perl distribution. DosGlob lets you use wildcards in directory paths, is case-insensitive, and accepts both backslashes and forward slashes (although you may have to double the backslashes). Can be run three ways:

- From a Perl script:

  >     require 5.004
  >     use File::DosGlob 'glob';

  >     @perlfiles = glob  "..\pe?l/*.p?";
  >     print <..\pe?l/*.p?>;

- With the perl command, on the command line:

  >     # from the command line (overrides only in main::)
  >     % perl -MFile::DosGlob=glob -e "print <../pe*/*p?>"

- With the perlglob.bat program on the DOS command line:

  >     % perlglob ../pe*/*p?

When invoked as a program from the command line, File::DosGlob prints null-separated filenames to STDOUT.

8.71 File::Copy |  | 8.73 File::Find