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.
Copyright © 2002 O'Reilly & Associates. All rights reserved.