The reason thatif ( running_under_windows and Foo.pm loaded and package_Foo doesn't exist ) { warn about case of Foo }
is valid is because use is merely:use Strict; $x = 10;
And on Windows, require Strict goes through fine, thanks to the caseless OS. And import silently fails (as is documented).BEGIN { require Strict; Strict->import; }
The DaTA::Dumper thing didn't give an error because you didn't turn on warnings. If warnings were on, you'd have seen:
Name "main::Dumper" used only once: possible typo at -e line 1. Filehandle main::Dumper never opened at -e line 1.
_____________________________________________________
Jeff japhy Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
In reply to Re: Re: Re: use Module and case-insensitive file names
by japhy
in thread use Module and case-insensitive file names
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |