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


in reply to [Win32] Verify filename (case sensitively)

When I need to be cross platform compatible, I always use the lc() function on all of my file name vars. This way all of my files created by my applications are written with lower case characters. If I have to deal with client supplied files, I rename then to lower case and I take out the spaces under Windows.

my $filename=lc('NaMeoFfiLe.txt');