> I'm trying in perl to get a maximum value from a field in a postgres table:
> $query="select max(userseq) from dataentry;";
> $result=$conn->exec("$query");
>
> and then capture that value in a scalar variable:
> $userseq=($result);
>
> but it's not working.
$result->getvalue(0, 0)
(pse. read examples in `perldoc Pg`)