my $page = url_param('page'); if ($page > 2) { my $top = $page * 20); my $bottom = $top - 19;