DreamT has asked for the wisdom of the Perl Monks concerning the following question:

Hi! This is probably very simple. I'm making an SQL query to the database:
$sth = $dbh->prepare("MY SQL QUERY"); $sth->execute(); while (my $rad = $sth->fetchrow_hashref()) { $a_variable = $rad->{'Some_column'}; } $sth->finish();
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.
Can I do it, and in that case where and how?