Right now, the form validation package is built as a generic package that I can reuse. I'm passing in a ref to the dbh when needed -- and that works fine, but its a little annoying, as I feel that I'm passing the ref around alot.
Is the form validation package functional/procedural or object oriented? If the former maybe you want to consider moving to the latter so you can have the $dbh become part of the object state and only pass it the once at object creation time.
In reply to Re: Passing Database handles to other modules. #2
by adrianh
in thread Passing Database handles to other modules. #2
by nmerriweather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |