or download this
Also, in a scalar context, an undef is returned if there are no more r
+ows or if an error occurred. That undef can't be distinguished from a
+n undef returned because the first field value was NULL. For these re
+asons you should exercise some caution if you use selectrow_array in
+a scalar context, or just don't do that.