Re: Returning multiple MySQL rows from module

2007-11-28 Thread Steve Bertrand
> In your new code you retrieve each record as a hash, keyed by field > name. Then, instead of your subroutine returning the result as it did > before, you copy the hash elements directly into your object. Correct. Essentially what I want is to absolutely minimize any work I have to do outside of

Re: Returning multiple MySQL rows from module

2007-11-27 Thread Rob Dixon
Steve Bertrand wrote: > Tom Phoenix wrote: >> Steve Bertrand wrote: The current setup feels very 'kludgy' to me. The code snip below comes out of the module. I hope there is enough context to see why I think it can be improved. Actually, the snippet you submitted seems pretty straightforward

Re: Returning multiple MySQL rows from module

2007-11-27 Thread Steve Bertrand
Tom Phoenix wrote: > On 11/27/07, Steve Bertrand <[EMAIL PROTECTED]> wrote: > >> The current setup feels very 'kludgy' to me. The code snip below comes >> out of the module. I hope there is enough context to see why I think it >> can be improved. > > Actually, the snippet you submitted seems pret

Re: Returning multiple MySQL rows from module

2007-11-27 Thread Tom Phoenix
On 11/27/07, Steve Bertrand <[EMAIL PROTECTED]> wrote: > The current setup feels very 'kludgy' to me. The code snip below comes > out of the module. I hope there is enough context to see why I think it > can be improved. Actually, the snippet you submitted seems pretty straightforward. It could b

Returning multiple MySQL rows from module

2007-11-27 Thread Steve Bertrand
Hi all, I am trying to modularize some standard MySQL queries that I frequently do against our RADIUS DB. The current setup feels very 'kludgy' to me. The code snip below comes out of the module. I hope there is enough context to see why I think it can be improved. Essentially, I'd like a gracef