in reply to Re: Case insensitive file testing
in thread Case insensitive file testing

File::Glob has a case insensitive mode, so assuming you have two files, abc.pl and abc.PL the following will display them both.
use File::Glob ':glob'; print "$_\n" for bsd_glob('*.pl', GLOB_NOCASE);
However, NOCASE mode doesn't seem to be working properly if there are no wildcard characters in the glob:
use File::Glob ':glob'; print "$_\n" for bsd_glob('abc.pl', GLOB_NOCASE);
That should display both filenames but it only returns abc.pl for me. (tested using 5.6.1 and 5.8.0 on RH7.3)

Is this a bug, or am I confused about how it should behave?

-Blake