This still seems kind of weird or hard to think about. But think about it like this.
Page 1 shows items 0 - 19, right?
Page 2 shows items 20 - 40 (which works fine, no duplicates)
Page 3 would show items 40 - 60 (first duplicate (#40)
Page 4 would show items 60 - 80 (next duplicate (#60)
After page two your last item on the patch will duplicate the first item on the next page (in a consecutive ++). I don't know if this would work, but maybe add another <if> statement that does something like:
my $page = url_param('page');
if ($page > 2) {
my $top = $page * 20);
my $bottom = $top - 19;
"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"
sulfericacid
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.