Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Module name case typo silent failure

by Haarg (Priest)
on Sep 19, 2019 at 22:53 UTC ( [id://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 (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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found