This is to help someone who has been having trouble understanding how to split your search results into pages, 10 by 10. So if your searching a database of page titles, and in the database is only the title|description|url|, using the pipe as a delimiter, post and explain your code to split your search results into pages of 10 results per page. Make sure you don't have a next button when your on the last page too.

Yes I aggree, it is. It also proves to be faster than using line counts to position your self. Well Done Japhy. I tested this on my pc (win 98 w/ Active perl 5.6 PWS)

I did make a few changes, one small one to be presice, when you go to the next results, the number of bytes is 1 too many and gulps up the first letter when only printing the titles and shifting to the next results. So I just substracted one byte from $last_loc and it was fine. It's very fast too, but when you go to add how many search results it found and what it's displaying, (Found 34 Results: Showing 20-30 kinda thing), it may slow down, and that's when using a line count makes things easier. Then you don't have to worry about going back and trying to find line numbers. You Could find what line numbers your displaying with the code, but not the total found, sorry if I'm wrong Japhy.