Silly stuff on CPAN

djberg96 on 2003-02-24T17:37:46

I see today that Shin Honda released File-Stat. Apparently, he didn't see Jarkko's File-stat. Arghh...

Actually, I didn't realize that module names were case sensitive when it came to storing them in CPAN. Maybe they shouldn't be to prevent just this sort of nonsense.


that'll break case-insensitive filesystems!

merlyn on 2003-02-24T20:06:19

You can't have both File::Stat and File::stat. Ugh.

Re:that'll break case-insensitive filesystems!

djberg96 on 2003-02-24T20:20:02

Good point. This sort of thing could really mess up MS Windows users if left unchecked over time (and make a mockery of namespaces and name selection in general), assuming continual abuse.

Time for the CPAN cops to step in I think. You don't wanna mess with the CPAN cops - they play hardball.

Re:that'll break case-insensitive filesystems!

rafael on 2003-02-24T21:04:17

You can have File::Stat and File::stat, installed in different locations, on a case-insensitive filesystem. However you can write use File::stat; and have File::Stat loaded.

At some point during the 5.7 development phase, a warning was added to detect that kind of things, but it was then proven unpractical. The curious minds can check the explanatory comment about this now-vanished warning in op.c (function Perl_utilize) in the perl 5.8.0 sources.

Ha ha

belg4mit on 2003-02-24T20:18:38

This bugged me to. Another instance where it
would have been nice to moderate ;-) Worse,
the author is actually aware of the existence
of File::stat. The dox also didn't seem to
indicate that the module was different in
any significant way either.