in reply to can't find my module?

This isn't in answer to your question at all (I think Abigail-II has you covered there), but note that you probably don't want to name one of your own modules "base.pm", since there's already a standard module by that name. In general, modules with all-lower-case names are taken to be pragmas (or pragmata, depending who you ask), as noted in perlmod: unless you're writing such a module, you probably want to make sure all your modules are capitalized.

Good luck with your modularization! It may be painful, but it'll pay off in the long run, we promise. :-)



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

Replies are listed 'Best First'.
Re: can't find my module?
by Abigail-II (Bishop) on Nov 19, 2003 at 22:59 UTC
    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

      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..."

      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

      The same reason we have vars.pm instead of Vars.pm (they're pragmatic).