-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday, March 18, 2002, at 08:55 , Puneet Kishor wrote:

> thanks Ken, for saving me from perlobotomy. use strict works.
>
> phew!
>
> wonder what the heck use Strict was... case gremlins.
>
> On Monday, March 18, 2002, at 08:12  AM, Ken Williams wrote:
>
>> You should be typing 'use strict;', not 'use Strict;'.  
>> Perhaps the filesystem is returning the contents of Strict.pm 
>> and perl is losing track of it in %INC.
>>
>> On Sunday, March 17, 2002, at 10:54 PM, Puneet Kishor wrote:
>>
>>> can anyone tell me what on earth these messages in my 
>>> httpd/error_log mean.
>>>
>>> [Sun Mar 17 22:51:30 2002] Strict.pm: Subroutine bits redefined at

I'm guessing you're using HFS+ for your filesystem. HFS+ is (let 
me see if I can get this right) case-insensitive and 
non-case-folding, which means that (a) if you create a file with 
the name "strict.pm", the case of the letters in the filename 
will be preserved, but (b) if you ask for "Strict.pm" in the 
same directory, you'll get "strict.pm" instead.

        craigc@samantha craigc $ locate strict.pm
        /System/Library/Perl/strict.pm

So here's the rest of the guess. You had "use Strict;" in your 
code. perl looked in %INC for "Strict.pm", didn't find it, went 
looking through @INC, and found "strict.pm", which was added to 
%INC and the file by that name was loaded. The next time "use 
Strict.pm" was encountered, perl again looked in %INC for 
"Strict.pm", and again didn't find it (because "strict.pm" was 
in there instead), etc.

- --
Craig S. Cottingham
[EMAIL PROTECTED]
PGP key available from: 
<http://pgp.ai.mit.edu:11371/pks/lookup?op=get&search=0xA2FFBE41>
ID=0xA2FFBE41, fingerprint=6AA8 2E28 2404 8A95 B8FC 7EFC 136F 
0CEF A2FF BE41
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see http://www.gnupg.org

iD8DBQE8l64YE28M76L/vkERAtdNAKDLCnl6PeSbMIvoqRaqIyLa8v/9QACdFcHl
RHS3Wb7swiZkA6qOOI9LTZQ=
=32WV
-----END PGP SIGNATURE-----

Reply via email to