in reply to Upper / Lower case extensions
The glob function can do that for you:
Note that your program logic will change since there can be more than one file for a given pair of arguments.my @datafiles = grep { -f } glob("$basepath$ARGV[0]/$ARGV[1].{dat,DAT}");
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Upper / Lower case extensions
by RMGir (Prior) on Jul 30, 2002 at 12:20 UTC | |
by sauoq (Abbot) on Jul 31, 2002 at 09:12 UTC |