in reply to loops & sql results storage

Hi thanks for your reply. Points noted & ammended on the order of loop & the regex construction. This subroutine is supposed to display the results of a search on a page. I need to then search within the results, if that makes sense.

Replies are listed 'Best First'.
Re^2: loops & sql results storage
by ww (Archbishop) on Apr 19, 2008 at 17:20 UTC

    Your clarification makes me wonder if you might wish to reconsider the design:

    This subroutine is supposed to display the results of a search on a page. I need to then search within the results...,

    Do you really need or want to "display" the initial results? If you don't need the overhead of rendering, is there any reason to introduce it?

    You may find it easier and more effective to simply store the initial results in an appropriate structure and then search through that.