in reply to Re: use seems to be case INSENSITIVE!!
in thread use seems to be case INSENSITIVE!!
Well I would not be surprised on windows as file-paths in windows are case insensitive anyway.
If this is indeed an ActiveState issue, then this is a serious bug. I read up the perldoc for require and it does not indicate that the search be case insensitive. For example, try below:
File listing:
$ls -al total 112 $ls -1 Interface Parser Parser.pm filetest.pl loadme.pl
Test code:
$cat filetest.pl #!/usr/local/ActivePerl-5.10/bin/perl #=============================================== # # FILE: filetest.pl # # USAGE: ./filetest.pl # # DESCRIPTION: # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # VERSION: 1.0 # CREATED: 10/12/2009 15:16:25 EDT # REVISION: --- #=============================================== use strict; use warnings; use FindBin qw($Bin); my $good_filename = 'loadme.pl'; my $bad_filename = 'Loadme.pl'; print "Found $Bin/$good_filename" . "\n" if (-e $Bin . '/' . $good_fil +ename); print "Found $Bin/$bad_filename" . "\n" if (-e $Bin . '/' . $bad_filen +ame);
Run results:
$./filetest.pl Found /Volumes/UserData/Users/dattanik/Programs/Perl/Work_area/Admin_s +erver/lib/Admin_server/loadme.pl Found /Volumes/UserData/Users/dattanik/Programs/Perl/Work_area/Admin_s +erver/lib/Admin_server/Loadme.pl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: use seems to be case INSENSITIVE!!
by Bloodnok (Vicar) on Oct 12, 2009 at 22:17 UTC |