in reply to Re: Case insensitive file testing
in thread Case insensitive file testing
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('*.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)use File::Glob ':glob'; print "$_\n" for bsd_glob('abc.pl', GLOB_NOCASE);
Is this a bug, or am I confused about how it should behave?
-Blake
|
|---|