http://www.perlmonks.org?node_id=1000328


in reply to [Windows] Given lower-cased file name, how to get actual file name (stored on filesystem) ?

In [Win32] Verify filename (case sensitively), the consensus seems to be that GetLongPathName() is a solution.