in reply to Re: can't find my module?
in thread can't find my module?

In general, modules with all-lower-case names are taken to be pragmas
Then why do we have base.pm instead of Base.pm?

Abigail

Replies are listed 'Best First'.
Re: Re: can't find my module?
by Anonymous Monk on Nov 19, 2003 at 23:24 UTC
    perlmodlib says (emphasis mine): "They work somewhat like compiler directives (pragmata) in that they tend to affect the compilation of your program, and thus will usually work well only when used within a use, or no. ... Some pragmas are lexically scoped--typically those that affect the $^H hints variable. Others affect the current package instead, like use vars and use subs..."
Re:^3 can't find my module?
by ChemBoy (Priest) on Nov 19, 2003 at 23:18 UTC

    Well, if I were into mind-reading, I would speculate that somebody considered a module that defined the parent classes of the current module to be more of a pragma-type-thingy than not (in the generally hand-waving spirit that seems to be popular in the Perl world). And if I were a computer scientist or otherwise deeply versed in the historical useage of the term "pragma" in a programming context, I might add some commentary on the wisdom of this choice. As I can claim none of these accomplishments, I will merely point to the words "in general" and note that I was paraphrasing perlmod, and cheerfully punt away the responsibility for anything that irks you about this arguable inconsistency onto more august shoulders than mine.



    If God had meant us to fly, he would *never* have given us the railroads.
        --Michael Flanders

Re: Re: can't find my module?
by Anonymous Monk on Nov 19, 2003 at 23:22 UTC
    The same reason we have vars.pm instead of Vars.pm (they're pragmatic).