On Tuesday, June 3, 2003, at 11:21 PM, Stas Bekman wrote:
Craig A. Berry wrote:Case sensitivity *could* be an issue on very recent versions of VMS if it
were explicitly enabled, but for the moment I'm only concerned about
case *preservation*, which is by no means guaranteed. Depending on the
OS version and the settings of various knobs and switches on the CRT,
the shell, and the archive utility or other file creation mechanism,
filename case may or may not be preserved. You can really only trust
the manifest for the case-preserved names of what you've got.
Michael at one point suggested to me a tied hash. If that means what
I think it means, it would do a lookup on 'Foo.pm' and then, if that
lookup failed, try 'foo.pm'.
what? One more system that turns the technology wheel backwards? :(
Well, your technique of reading the entire directory just to get the proper-case name of a single file is no Cat Pajama Suit either.
The only real way to handle it properly if you have no advance knowledge of the filesystem is to query the OS for the proper casing. Mac OS X has this ability, it's probably available in other case-insensitive case-preserving environments too if we wanted to bother with it.
-Ken
