in reply to Mixing Mysql and Perl
There are no definite rules on implementing MySQL on Perl at least on a programmer's point of view. Whatever best fits your style, do it. Whether you create multiple functions or you simply make a universal that's completely up to you as long as it does the same thing. In Perl they say, "there is more than one way to do it"... and it's definitely true. If you want to take a significant performance hit, you may as well study on the techniques of optimizing MySQL queries liking making wise use on indexes perhaps. Till then... you are what you do. Keep it that way if you do it best.
|