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 reply to Re^5: Ordering Template cards
by haukex
in thread Ordering Template cards
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |