Dr. Claus-Peter Becke wrote:
: first of all a question without respect to my problem. what does
: HTH mean?
Hope that helps or, sometimes here in Texas it means hotter
than Hell.
: i would like of having returned a string value as printed by
: "print @row".
That is in a loop. There may be many of those strings, not
just one. From the query I assume that each pass produces one
return value ($row[0]). They could be printed and then pushed
onto another array which will survive the loop.
[code in this message is not tested]
.
.
.
$sth->execute() or die $sth->errstr;
my @result;
while ( my @row = $sth->fetchrow_array ) {
print @row, $q->br;
push @result, @row;
}
$sth->finish;
$dbh->disconnect;
return @result;
}
In scalar context this will return the number of matching
rows, if any. In list context it will return the array matches.
if ( databaserequest_noun( 'blah', 'blah', 'blah' ) ) {
# matches
} else {
# no matches
}
HTH,
Charles K. Clarkson
--
Mobile Homes Specialist
Free Market Advocate
Web Programmer
254 968-8328
Don't tread on my bandwidth. Trim your posts.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>