in reply to Finding Previous and Next in a HASH

What arturo says is right, but I think the more fundemental problem is that you're using a less than perfect data structure given your problem. It would be much easier to just use a doubly linked list. There's probably something on CPAN.

  • Comment on Re: Finding Previous and Next in a HASH