I meant to give a perl example.
Using DBI:
$sth = $dbh->prepare('select myfunc2(?)');
$rv = $sth->execute($myvar);
print "Number rows = ", $sth->rows, "\n";
while ($data = $sth->fetchrow_array) {
print "Data: ", $data[0], "\n";
}
$sth->finish;
I can't remember the Pg.pm syntax, I only see that in support mode at the
moment so don't really pay much attention to it.
--
Nigel J. Andrews