However, I think you're making it too hard. The only thing wrong with what you have is that you are passing data around by serializing it and sticking it in %ENV. Why not just make your $cfg object available from other classes? Stash it in a global and then make a simple accessor like MyCfg::get_cfg() that MyCDBI can call to get it.
In reply to Re^7: Abstracting Class::DBI Database Connection Data
by perrin
in thread Abstracting Class::DBI Database Connection Data
by gryphon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |