here is some pseudocode
  1. decide how many items to show per page, say 'n'
  2. determine the total number of items in the result set, say 'r'
  3. calc the total number of pages, say 'p', that will be created by the result set by using the above two (typically p = int(r/n)
  4. determine which page you are on right now based on the items being displayed
  5. create your navigation links with appropriate items to start from
  6. get more fancy once you've gotten the basic system working

Even if someone has a precanned script for it, it is likely not going to fit your requirements because you have not provided any details on how you are generating your results, pages, etc.

Nevertheless, it is quite easy to right, and would be a really nice exercise to learn Perl. Good luck.

btw... nice music. "Seven Steps To Heaven" really cooks. Thanks.

--
when small people start casting long shadows, it is time to go to bed

In reply to Re: Navigation script? by punkish
in thread Navigation script? by bobafifi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.