It sounds like you are looking for a linked list, specifically a doubly-linked list. perlfaq4 has "How do I handle linked lists?", which has a basic example of how you could construct a linked list. In addition, Chapter 3 of Mastering Algorithms with Perl has several examples of how to implement various types of linked lists. I searched CPAN but didn't find anything that looked promising (HTML::LinkList looked interesting, but I don't think it does what you're looking for here).
Update: OOP/Linked List Question may also be of help.
HTH
In reply to Re: finding next key in db_file
by bobf
in thread finding next key in db_file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |