If there are no rows to return, "fetchall_arrayref" returns a reference to an empty array.So just testing for if (@$result) {...} should tell you if there are results.
In reply to Re: DBI and fetchall_arrayref
by runrig
in thread DBI and fetchall_arrayref
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |