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


in reply to Re^2: Module name case typo silent failure
in thread Module name case typo silent failure

The stash is created when parsing the require function. It doesn't even have to be run. This generally doesn't matter but can have an impact on things like indirect method calls.

Existence of a stash isn't really a useful concept though. Too many things can lead to a stash existing, including loading a sub-package (loading Blurf::Guff would cause the Blurf:: stash to exist).

Replies are listed 'Best First'.
Re^4: Module name case typo silent failure
by LanX (Saint) on Sep 19, 2019 at 23:04 UTC
    > Existence of a stash isn't really a useful concept though.

    I think it's good enough for just another "possible typo" warning.

    Especially if the stash HiRes:: is created after requiring the module Hires which resolved to the file HiRes.pm .

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice