Problems? Is your data what you think it is? | |
PerlMonks |
Re^5: Ordering Template cardsby haukex (Archbishop) |
on Jan 26, 2021 at 12:36 UTC ( [id://11127476]=note: print w/replies, xml ) | Need Help?? |
Well it could have been designed to detect that it's called in list context and return an empty list when the table is exhausted. There are arguments to be made for and against this. If a method is documented to return a scalar, then you'd expect to be able to do my %data = ( foo => $sth->fetchrow_arrayref, bar => 123 );, if it suddenly returns the empty list that'd be a problem.
In Section
Seekers of Perl Wisdom
|
|