http://www.perlmonks.org?node_id=925067

rovf has asked for the wisdom of the Perl Monks concerning the following question:

On Windows, the following code issues neither error nor warning:

use strict; use warnings; use file::path; # error! shoud be File::Path
Searching a bit, I found that this problem was already discussed 10 years ago here, and a fix for Perl was suggested.

Now I wonder why this was never fixed....
-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re: Case errors in "use" statements on Windoze
by Anonymous Monk on Sep 10, 2011 at 01:59 UTC

    Now I wonder why this was never fixed....

    I don't know :)

    This got in http://perl5.git.perl.org/perl.git/history/HEAD:/lib/strict.pm

    # Verify that we're called correctly so that strictures will work. unless ( __FILE__ =~ /(^|[\/\\])\Q${\__PACKAGE__}\E\.pmc?$/ ) { # Can't use Carp, since Carp uses us! my (undef, $f, $l) = caller; die("Incorrect use of pragma '${\__PACKAGE__}' at $f line $l.\n"); } $ perl -MStRiCt -e 1 Incorrect use of pragma 'strict' at -e line 0. Compilation failed in require. BEGIN failed--compilation aborted.
    Same for warnings
    # Verify that we're called correctly so that warnings will work. # see also strict.pm. unless ( __FILE__ =~ /(^|[\/\\])\Q${\__PACKAGE__}\E\.pmc?$/ ) { my (undef, $f, $l) = caller; die("Incorrect use of pragma '${\__PACKAGE__}' at $f line $l.\n"); } $ perl -MWaRnInGs -e 1 Incorrect use of pragma 'warnings' at -e line 0. Compilation failed in require. BEGIN failed--compilation aborted.

    The accompanying thread dated April 16, 2007 The Strict trap hints at some reasons, like it would break existing code, etc