hesco has asked for the wisdom of the Perl Monks concerning the following question:
We're using CGI::Application::Plugin::Config::Simple to read in configuration data, including a definition for library, where our respective sandboxes are stored.
Its loading the cpan installed modules already in @INC, just fine. But its tripping up on this piece of it:
At which point it throws these ugly errors, reading:# cgiapp_init(); sub cgiapp_init { my $self = shift; $self->config_file('/var/lib/cf/tbd/regform/Registration.ini'); my $lib = $self->config_param('library'); use lib qw/$lib/; use Registration::WWW::htmlgui; use Registration::DB; my $dbh = Registration::DB->connect($self->config_param('db_engine') +,$self->config_param('host_name'),$self- >config_param('db_name'),$self->config_param('db_user'),$self->config_ +param('db_pw')); my $result = auth_config($dbh); }
Apparently it wants to be able to do its use lib piece at compile time, but it doesn't get populated from the configuration until run time. Can anyone here suggest a work-around, please?Use of uninitialized value in string at Registration/lib/Registration/ +WWW/RegForm.pm line 46. Empty compile time value given to use lib at Registration/lib/Registra +tion/WWW/RegForm.pm line 46
All help appreciated.
-- Hugh
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Which comes first . . .
by rhesa (Vicar) on May 01, 2006 at 21:31 UTC | |
|
Re: Which comes first . . .
by Roy Johnson (Monsignor) on May 01, 2006 at 21:45 UTC | |
|
Re: Which comes first . . .
by hesco (Deacon) on May 01, 2006 at 22:08 UTC |