in reply to object creation
First, you don't need to export your object methods, or even inherit from Exporter in object oriented code. Next, we would need to see how you're using the module in LoadProperties.pm.
Also, instead of setting up a package global holding a database handle, use DBIx::Connector, which will re-initialize database handles when they become invalid (which does happen). In fact, some of your module's functionality is already done well by DBIx::Connector.
I'm not sure why you're using so many localized package globals anyway; what's wrong with lexically scoped variables via 'my' within your subroutines? You must have a good reason that I'm not seeing.
Dave
|
|---|