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
In reply to Which comes first . . . by hesco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |