in reply to how to determine of fetchrow_Arrayref is empty?
$ref is a reference to an array so you can:
if (@$ref) { # have elements } else { # No elements to process }
See perlreftut and perlref.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to determine of fetchrow_Arrayref is empty?
by Herkum (Parson) on May 27, 2008 at 19:47 UTC |