0: package GlobArgv;
1: use strict;
2:
3: @ARGV = map { glob } @ARGV;
4: 1;
5:
6: __END__
7:
8: =head1 NAME
9:
10: GlobArgv - Enables Win32 One-Liners to Use Filename Wildcards
11:
12: =head1 SYNOPSIS
13:
14: perl -MGlobArgv -ne "print if /pattern/" *.csv
15: perl -MGlobArgv -i.bak -pe "s/old/new/i" *.txt single.log
16:
17: =head1 DESCRIPTION
18:
19: Quick and dirty package to expand filenames containing
20: wildcards passed as command line arguments. Win32 shells
21: (CMD, 4NT) do not resolve wildcards by default.
22:
23: A module is used to force the expansion of command line arguments
24: before the implicit "while (<>)" loop.
25:
26: =head1 BUGS AND LIMITATIONS
27:
28: Very simple minded -- assumes everything on the command line
29: is a filename that wants to be expanded.
30:
31: =head1 AUTHOR
32:
33: Keith S. Kiyohara, <kkiyohara@hotmail.com>
34:
35: =cut
36:
37:
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |