in reply to last 10 ... next 10?
If you want to do it in perl and/or don't know if your database supports the LIMIT selection, you should try with slices of the aray:
This gives you the wanted elements. Don't forget that you start counting with 0 for the first element (so this returns the 4th to the 6th element). Thanks to alakaboo and his great explenation in this note :-)@foo = ("1", "2", "3", "4", "5", "6", "7", "8"); print "@foo[3..6]\n";
Until you don't go further into
detail about the layout of your database or how you proceed
your data within your perl script I can't offer better
answer (maybe other more enlighened monks can ;)
--
Alfie
|
|---|