in reply to Passing Database handles to other modules. #2
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Passing Database handles to other modules. #2
by nmerriweather (Friar) on May 10, 2004 at 23:25 UTC | |
by adrianh (Chancellor) on May 12, 2004 at 14:10 UTC |