I've got a set of modules and scripts that I've just written and I'm trying to figure out why they can't find each other. First off, the errors:

Can't locate package Apps::WWW::Base for @Apps::WWW::Configurators::IS +A at index.cgi line 21. Can't locate package CGI::Application::MixIn::Upload for @Apps::WWW::C +onfigurators::ISA at index.cgi line 21. Can't locate package CGI::Application::MixIn::Auth for @Apps::WWW::Con +figurators::ISA at index.cgi line 21.

The script that uses the modules couldn't be any more straightforward, with all the local directories needed through use lib:

use lib ('/big/dom/xclickautomation/Projects/Admin_Site/lib', # Home o +f Apps::WWW::Configurators and Apps::WWW::Base '/big/dom/xclickautomation/lib/', # home of CGI::Application: +:MixIn modules, used in Apps::WWW::Configurators '/big/dom/xclickautomation/lib/CPAN/lib/perl5/site_perl/5.005 +/' #my local CPAN installs ); use strict; #------------------------------------- # IN HOUSE MODULES use Apps::WWW::Configurators; #===================================================================== +===================================== # MAIN ( Apps::WWW::Configurators->new() )->run(); exit(0);

And the @ISA array at the top of Apps::WWW::Configurators:

package Apps::WWW::Configurators; @ISA = qw(Apps::WWW::Base CGI::Application::MixIn::Upload CGI::Applic +ation::MixIn::Auth);

Now, the odd thing is that the script could find Apps::WWW::Configurators, but it couldn't find Apps::WWW::Base which sits in the same exact directory. And none of this gives me much insight on why it can't find all the CGI::Application::MixIn modules. Any idea what I'm overlooking?

Edit title by tye


In reply to wrestling with use lib and @ISA by AidanLee

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.