Perl FFDB results per page
Hi, I've spent a few days looking around for this and come up empty handed, maybe somebody might be able to help me.
I had put together a Perl flat-file database manager for smallish FFDBs and it can read in the entire database on a view page which has a next-back feature with predefined entries per page. This is okay if there are only a dozen or so records, but when there are 40 or 50 records it's a real pain.
What I need to know how to do is have a view breakdown that shows my entries per page (let's say 10) and the results are similar to a search engine.
For instance:
Beginning 1 2 3 4 5 ... Next Last
If I go to say page 3 then the result would show
Beginning 4 5 6 7 8 ... Next Last
etc-etc
The beginning one is easy, I just start over, the rest.. I tried to find a tutorial to no avail. Oh, there's all kinds stuff for PHP and MYSQL, but that's not what I'm using.
Each record is a line and I can easily count those with a: $count++ while ..... bit of code ($count would be the total number of lines(records).
Hope someone can help, many thanks - Ted