+ # Corner case: If on the first page (i.e. $next=0) then being zero based, we
+ # will actually get 21 entries in @list (i.e. $next=0, $lines=20 - 21 $entries
+ # are retrieved). So in that case, and that case only, we will change $lines
+ # to $lines - 1.
+ --$lines if $next == 0;
+
+ my @list = ReturnList($type, $next, $lines);