philosophia has asked for the wisdom of the Perl Monks concerning the following question:
-what is the best way, from within the while loop, to execute a query using the value of $data->{field1}?while(fetchrow_hashref) {print qq($data->{field1}\n);
?while(fetchrow_hashref) { print qq($data->{field1}; # pseudocode to use $data->{field1} in another query, run query, anoth +er while(fetchrow_hashref) to print out the results of the second que +ry then... # end original while loop }
thanks
janitored by ybiC: Minor format tweaks, including balanced <code> tags around snippets
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dbi question
by JediWizard (Deacon) on Mar 04, 2005 at 18:17 UTC | |
|
Re: dbi question
by FitTrend (Pilgrim) on Mar 04, 2005 at 20:02 UTC | |
by Tanktalus (Canon) on Mar 04, 2005 at 21:10 UTC | |
by FitTrend (Pilgrim) on Mar 04, 2005 at 21:40 UTC | |
by shemp (Deacon) on Mar 05, 2005 at 00:13 UTC |