Think about Loose Coupling | |
PerlMonks |
dbi questionby philosophia (Sexton) |
on Mar 04, 2005 at 17:55 UTC ( [id://436685]=perlquestion: print w/replies, xml ) | Need Help?? |
philosophia has asked for the wisdom of the Perl Monks concerning the following question:
i'm using fetchrow_hashref to extract rows out of a database like
-what is the best way, from within the while loop, to execute a query using the value of $data->{field1}? i.e., ? also, if anyone has dealt with this before, if the first while(fetchrow_hashref) returns identical values for $data->{field1} in subsequent iterations of the loop, know not to run the second query again on the same value for $data->{field1}? thanks janitored by ybiC: Minor format tweaks, including balanced <code> tags around snippets
Back to
Seekers of Perl Wisdom
|
|