DreamT has asked for the wisdom of the Perl Monks concerning the following question:
No problems there. But, I'd _also_ like to send the result to a function where I want to iterate over the resultset once more.$sth = $dbh->prepare("MY SQL QUERY"); $sth->execute(); while (my $rad = $sth->fetchrow_hashref()) { $a_variable = $rad->{'Some_column'}; } $sth->finish();
Can I do it, and in that case where and how?&DoSomeTreatment($sth???);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing DBI resultset to function
by eric256 (Parson) on Dec 15, 2009 at 14:31 UTC | |
|
Re: Passing DBI resultset to function
by roboticus (Chancellor) on Dec 15, 2009 at 20:03 UTC | |
|
Re: Passing DBI resultset to function
by misterwhipple (Monk) on Dec 15, 2009 at 15:24 UTC | |
|
Re: Passing DBI resultset to function
by bfdi533 (Friar) on Dec 15, 2009 at 18:09 UTC | |
by afoken (Chancellor) on Dec 18, 2009 at 00:33 UTC | |
by DreamT (Pilgrim) on Dec 17, 2009 at 11:26 UTC |