in reply to Re^2: Upper / Lower case extensions
in thread Upper / Lower case extensions

I suggest:
my @datafiles = glob("$basepath$ARGV[0]/$ARGV[1].[dD][aA][tT]");

It takes care of the special cases and eliminates the grep.

Figuring out why it eliminates the grep is an exercise for the reader. :-) Hint: You might need to use man instead of perldoc. . .

-sauoq
"My two cents aren't worth a dime.";