AidanLee has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: wrestling with codeuse lib/code and code@ISA/code
by perrin (Chancellor) on Aug 24, 2001 at 03:50 UTC | |
by AidanLee (Chaplain) on Aug 25, 2001 at 01:57 UTC | |
|
Re: wrestling with codeuse lib/code and code@ISA/code
by kjherron (Pilgrim) on Aug 24, 2001 at 03:56 UTC | |
|
Re: wrestling with codeuse lib/code and code@ISA/code
by Rudif (Hermit) on Aug 24, 2001 at 03:15 UTC | |
by AidanLee (Chaplain) on Aug 24, 2001 at 03:21 UTC |