At 4:51 PM +1000 6/3/03, Stas Bekman wrote:
Michael G Schwern wrote:
And there are the wish-list items of having Install.pm and Manifest.pm be case blind when retrieving filenames from the file system but still being able to match those filenames to mixed-case package names.
FWIW, we have been working on Apache::test/Apache::Test collision on case-insensitive filesystems, so the following code may be helpful as it's tested to read in the real case of the file.
Thanks for the suggestion. If I read your code right (dubious with
as little sleep as I've had), you assume the "real case of the file"
is something that you can always get from the file system, regardless
of whether the file system is case sensitive or not.
Yes.
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? :(
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
