Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Module name case typo silent failure

by Haarg (Curate)
on Sep 19, 2019 at 22:53 UTC ( #11106416=note: print w/replies, xml ) Need Help??


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 (Cardinal) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11106416]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2020-09-25 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (137 votes). Check out past polls.

    Notices?