skazat has asked for the wisdom of the Perl Monks concerning the following question:
hello all,
a want to configure the AnyDBM_File to use a certain db lookup scheme, just like in the POD:
BEGIN { @AnyDBM_File::ISA = qw(DB_File GDBM_File NDBM_File ODBM_File) +}
could I put this snippet of code in a CONFIG.pm module (or any module that has my configurations for the program) and then call both the CONFIG.pm and the ANYDB_File module in a program, like this:
use CONFIG; use AnyDBM_File;
and have it do what i want it to do, which is have the AnyDBM_File obey what's in the CONFIG file?
If not, is there a way? This is for a CGI program I release, so I never know what kind of DB thingy they got going on, but I want users to change what db package is used.
-justin simoni
!skazat!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: AnyDBM_File and configing in a different module.
by AgentM (Curate) on Oct 17, 2000 at 02:49 UTC |