Hi everyone, I'm looking to separate all of my MySQL logic (queries etc) out of my projects methods and into it's own class.
Primarily, this is to provide me with the ability to change how the back-end is interacted with, without having to go through each module and make the changes there. For instance, I am about to add code so that the project can use multiple SQL servers if a config variable is set. The idea is that the project subs will pass along the SQL criteria to a 'wrapper' method in a dedicated class which does the actual DBI work. After the separation is complete, it will be trivial to simply wrap the wrapper in a foreach statement and iterate the transaction $num_servers times. Can anyone provide any experience/insights as to the best way to accomplish this, or provide the name of some CPAN modules that I can learn from (or use). Steve -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/