in reply to Re^2: Does fetchall_arrayref() ever return a NULL?
in thread Does fetchall_arrayref() ever return a NULL?

Thank for trying all that.

In the end, I decided it would just be easier if I checked for null in both places and move on.

checking for undef in the return, and no records when I check the array size

  • Comment on Re^3: Does fetchall_arrayref() ever return a NULL?

Replies are listed 'Best First'.
Re^4: Does fetchall_arrayref() ever return a NULL?
by NERDVANA (Priest) on May 08, 2022 at 01:41 UTC
    Another option is to enable RaiseError, and then you get an exception instead of undef, and cleaner code to wrap up errors.