A
Anno Siegel
A. Sinan Unur said:The OP might be on Windows where the case insensitive nature of the
operating system can play nasty tricks on the unsuspecting individual.
Indeed:
D:\Home\asu1> cat ttt.pl
#!/usr/bin/perl
use Strict;
use Warnings;
Same for Mac (OS X or earlier), at least when run on a case-insensitive
file system.
At first sight it looks pretty harmless, after all Perl finds the
intended module, so all is fine. However, a potential import()
method in the module will *not* be found because Perl looks for
->Warnings::import (in the case of "warnings"), where case matters.
This doesn't lead to an error message either (only if parameters were
given).
So the module *has* been loaded, but then some things the code expects
to be done have *not* been done. The resulting situation can be very
confusing.
Anno