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
In reply to Re: Upper / Lower case extensions
by Zaxo
in thread Upper / Lower case extensions
by Cockneyphil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |