$VAR{q} = qq~SELECT COUNT(*) FROM table~; $VAR{x} = $DBCONN->query($VAR{q}); $VAR{n} = $VAR{x}->numrows;