$ref is a reference to an array so you can:
if (@$ref) { # have elements } else { # No elements to process }
See perlreftut and perlref.
In reply to Re: how to determine of fetchrow_Arrayref is empty?
by GrandFather
in thread how to determine of fetchrow_Arrayref is empty?
by poolboi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |